aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.h
AgeCommit message (Collapse)AuthorFilesLines
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-6/+6
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-9/+1
equivalents for the epan/ directory but leave winsock2.h in inet_pton.c and inet_ntop.c for now (can't estimate the consequences). svn path=/trunk/; revision=5928
2002-05-05Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,Guy Harris1-19/+20
extracting PDUs from it and possibly doing reassembly. Make the COPS, DNS, DSI, Gryphon, and SCCP dissectors use it. Add "set_actual_length()", "tcp_dissect_pdus()", "decode_boolean_bitfield()", "decode_numeric_bitfield()", and "decode_enumerated_bitfield()" to the list of routines available to dissectors on platforms where routines in the main program aren't available to dynamically-loaded code. Declare routines in "to_str.h" as "extern"; as I remember, that's necessary to allow the "decode_XXX_bitfield()" routines declared therein to be made available to plugins as per the above. Note that new exported routines should be added to the end of the table if that's the only change being made to the table. Create a new "plugin_api_decls.h" header file, used to declare both the "p_" variables and the "p_" structure members in the routine-exporting mechanism; this reduces the number of places you have to change to change the list of exported routines. svn path=/trunk/; revision=5394
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris1-6/+17
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3934
2001-08-01Add a "time_secs_to_str_buf()" routine, which takes seconds andGuy Harris1-3/+3
fractions-of-a-second (the units of which are either milliseconds or microseconds, specified by a Boolean argument), and formats it into a "DD days, HH hours, MM minutes, SS seconds" using a buffer supplied to it. Have "time_secs_to_str()" and "time_msecs_to_str()" both use it. Also, have it correctly handle the case of SS being > 0 but < 1 (which "time_msecs_to_str()" didn't do). Rename "rel_time_to_str()" to "rel_time_to_secs_str()", and add a "rel_time_to_str()" routine that takes a "struct timeval" and hands its seconds and microseconds values to "time_secs_to_str_buf()". Use "rel_time_to_secs_str()" to format FT_RELATIVE_TIME values for now; we might want to use "rel_time_to_str()" for them, though, or make it an option (either a user option, or a per-field option, using the field that also holds BASE_ values). svn path=/trunk/; revision=3806
2001-07-13Add a "time_msecs_to_str()" routine, to turn a time interval, expressedGuy Harris1-1/+2
as a 32-bit number of milliseconds, to a descriptive string. Use that in the MS Browser dissector. svn path=/trunk/; revision=3708
2001-04-01Moved vines_addr_to_str() from packet-vines.{h,c} to epan/to_str.{c,h}.Ed Warnicke1-1/+2
svn path=/trunk/; revision=3229
2001-04-01Moved various to_str files from packet.{c,h} to a separateEd Warnicke1-0/+65
to_str.{c,h}. Resolved strange situation where ipx_addr_to_str was declared in packet.h but defined in packet-ipx.c by moving ipx_addr_to_str, ipxnet_to_str_punct, and ipxnet_to_str from packet-ipx.{c,h} to to_str.{c,h} svn path=/trunk/; revision=3219