aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename address_to_str() to ep_address_to_str() because:Kovarththanan Rajaratnam2009-09-061-1/+3
| | | | | | | 1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). svn path=/trunk/; revision=29747
* Sanitize epan includesKovarththanan Rajaratnam2009-08-211-1/+1
| | | | svn path=/trunk/; revision=29502
* Introduce se_address_to_str()Anders Broman2009-07-071-0/+1
| | | | svn path=/trunk/; revision=28973
* From Nathan Hartwell via bug 2733:Stig Bjørlykke2009-06-251-0/+1
| | | | | | Added time_secs_to_str_unsigned(). svn path=/trunk/; revision=28840
* Introduce decode_bits_in_field() and use it.Anders Broman2009-05-151-0/+2
| | | | | | clean up some left owers from previous checkin. svn path=/trunk/; revision=28373
* Constify a bunch of stuff, to squelch -Wwrite-strings warnings. Guy Harris2008-06-251-1/+1
| | | | | | | | | | | | | | | | | epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not ready to enable that warning by default yet. Throw in some casts to handle GLib routines that take arbitrary non-const pointers (they can later return the pointers, and some callers might want to modify or free up those pointers in cases where they're known to be writable or allocated). Use ep_tvb_memdup() rather than a combination of ep_alloc() and tvb_memcpy(). Clean up some indentation. svn path=/trunk/; revision=25601
* replace oid_to_str_buf() and oid_to_str()Luis Ontanon2007-08-251-3/+0
| | | | | | | fix a potential buffer overflow due to a very liberal estimate by oid_repr_len() svn path=/trunk/; revision=22659
* Fix potential buffer overruns in address_to_str_buf() found by Andrej Gerald Combs2007-01-291-1/+3
| | | | | | | | Mikus. Add a buf_len parameter to ip_to_str_buf(), and make sure it's enforced. Copy the release notes over from the 0.99.5 trunk and add a note about the ISUP dissector (which is affected by the overrun). svn path=/trunk/; revision=20607
* From Douglas Pratley with trivial changes and documentation changes Stephen Fisher2006-12-051-0/+2
| | | | | | | | | | | | | | | by myself: Corrected patch; epan/column.c and epan/column_utils.c were not included. This one has now been properly tested against a clean checkout of today's code. - New menu option available under view\time display format - New sub-option (e) to -t switch for both wireshark and tshark - Extended recent settings code to handle new value - Did NOT add new explicit epoch time column svn path=/trunk/; revision=20040
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* new FT_GUID handling - big/little endian supportedTomas Kukosa2006-03-101-2/+2
| | | | svn path=/trunk/; revision=17566
* Add TIPC address as address type and use it in TIPC.Anders Broman2005-12-011-0/+1
| | | | svn path=/trunk/; revision=16641
* Export "bytestring_to_str()", and use it when adding the link-layerGuy Harris2005-08-281-0/+1
| | | | | | address for the ND_OPT_TARGET_LINKADDR ICMPv6 packet type. svn path=/trunk/; revision=15591
* timestamp display precision:Ulf Lamping2005-08-251-0/+3
| | | | | | | | | - automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
* removal of even more sprintfRonnie Sahlberg2005-08-201-3/+3
| | | | svn path=/trunk/; revision=15457
* various code cleanup:Ulf Lamping2005-08-081-1/+1
| | | | | | | | | -use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
* new field type FT_GUIDTomas Kukosa2005-07-041-0/+3
| | | | svn path=/trunk/; revision=14845
* "oid_to_str()" and "oid_to_str_buf()" don't modify what the "oid"Guy Harris2005-05-051-2/+2
| | | | | | argument points to, so make it a "const" pointer. svn path=/trunk/; revision=14311
* New oid_to_str() and oid_to_str_buf() functionsTomas Kukosa2005-04-281-0/+4
| | | | svn path=/trunk/; revision=14216
* change time_secs_to_str() and time_msecs_to_str() to take a signed integer ↵Ronnie Sahlberg2005-04-121-2/+2
| | | | | | as parameter so we can handle negtive times svn path=/trunk/; revision=14055
* "address_to_str()" and "address_to_str_buf()" don't modify the "address"Guy Harris2005-01-011-2/+2
| | | | | | | structure pointed to them by reference, so make the argument a "const" pointer. svn path=/trunk/; revision=12911
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* to_str.c declares this: gchar* ip6_to_str ..., make to_str.h do the sameJörg Mayer2004-01-101-2/+2
| | | | | | (char -> gchar) svn path=/trunk/; revision=9629
* Add "ip6_to_str_buf()", by analogy to "ip_to_str_buf()".Guy Harris2003-12-091-1/+2
| | | | svn path=/trunk/; revision=9216
* Get rid of the private "my_decode_bitfield_value()" a number ofGuy Harris2003-12-081-1/+3
| | | | | | | dissectors had. Instead, rename it "other_decode_bitfield_value()", put it in "epan/to_str.c", and make "decode_bitfield_value()" use it. svn path=/trunk/; revision=9213
* Create an "address_to_str_buf()" routine, called by "address_to_str()",Guy Harris2003-08-261-1/+3
| | | | | | | | | | | | | | which fills in a caller-supplied buffer. Create "_buf()" versions of various "to_str" routines for various address types, and create a routine to map SNA FIDs to strings, and use them to finish up "address_to_str_buf()". Get rid of the declaration of "sna_fid_type_4_addr_to_str()" in "packet-sna.h", as that routine has been swallowed up in "sna_fid_to_str()". svn path=/trunk/; revision=8260
* Add a new function address_to_str to to_str.cRonnie Sahlberg2003-08-241-1/+2
| | | | | | | Implement conersion from address to string for IPv4 and IPv6 and update the conversation tables to use the new interface. svn path=/trunk/; revision=8234
* FC addresses are no longer extracted into guint32s, so "fc32_to_str()"Guy Harris2003-08-241-2/+1
| | | | | | is no longer needed. svn path=/trunk/; revision=8226
* Add FibreChannel to the types of protocols we can show a conversation list forRonnie Sahlberg2003-08-231-2/+3
| | | | svn path=/trunk/; revision=8223
* Update to FC to store the source and destination id in a guintRonnie Sahlberg2003-06-231-1/+2
| | | | | | to make it easier to add matching and response times later. svn path=/trunk/; revision=7916
* Make the argument to "abs_time_secs_to_str()" a "time_t" - it's in ANSIGuy Harris2003-02-121-2/+2
| | | | | | C, and it's the right thing to pass to "localtime()". svn path=/trunk/; revision=7125
* Add a "abs_time_secs_to_str()" routine that takes a UNIX time-since-the-Guy Harris2003-02-111-1/+2
| | | | | | | | | | | | | | epoch-in-seconds value and converts it to a string. Use that routine in the RADIUS dissector, rather than using "ctime()" and "tzname[]" - "tzname[]" strings might contain non-ASCII characters, which currently give the GTK+ 1.3[.x] used on Windows, and also, I think, GTK+ 2.x, heartburn, as they expect UTF-8, not, for example, ISO 8859/1. Fix the string length in "abs_time_to_str()". svn path=/trunk/; revision=7124
* Work around annoying Apple C compiler/linker bug.Guy Harris2002-12-091-3/+1
| | | | | | | | | | | "ether_to_str_punct()" no longer deals only with Ethernet-style addresses, as it now takes a length argument, rename it "bytestring_to_str()" - and make it static, as it's not used outside "to_str.c". Get rid of unused "fc_to_str_buf()" routine. svn path=/trunk/; revision=6770
* Clean up a bit, and put "extern" back.Guy Harris2002-12-081-9/+8
| | | | svn path=/trunk/; revision=6768
* From Dinesh Dutt: Add Fibre Channel support, including FCIP, Basic FCGerald Combs2002-12-081-5/+10
| | | | | | header, Extended Link Service, Interswitch Link Service, FCP, and IPFC. svn path=/trunk/; revision=6757
* Make "ip6_to_str()" take a const pointer as an argument.Guy Harris2002-11-281-2/+2
| | | | svn path=/trunk/; revision=6687
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-6/+6
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-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
* Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,Guy Harris2002-05-051-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
* Make the resolution for time values be nanoseconds rather thanGuy Harris2001-09-141-6/+17
| | | | | | | | microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3934
* Add a "time_secs_to_str_buf()" routine, which takes seconds andGuy Harris2001-08-011-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
* Add a "time_msecs_to_str()" routine, to turn a time interval, expressedGuy Harris2001-07-131-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
* Moved vines_addr_to_str() from packet-vines.{h,c} to epan/to_str.{c,h}.Ed Warnicke2001-04-011-1/+2
| | | | svn path=/trunk/; revision=3229
* Moved various to_str files from packet.{c,h} to a separateEd Warnicke2001-04-011-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