aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.h
AgeCommit message (Collapse)AuthorFilesLines
2011-05-08Add FT_EUI64 Field Typealagoutte1-0/+3
* Remove proto_tree_add_eui64 function from 802.15.4 Dissector * Replace print_eui64/print_eui64 by eui64_to_str/get_eui64_name * Update Documentation (README.dev) * Add new function in libwireshark.def * Support of encoding for tvb_eui64_to_str * Use FT_EUI64 for ICMPv6, CAPWAP, Zbee ... dissector git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37015 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-05Introduce ip6_to_str_buf_len (little cleaner version of inet_ntop6 from ↵darkjames1-0/+1
wsutil/inet_ntop.c) and use it instead of inet_ntop(AF_INET6, ...) - Add MAX_IP6_STR_LEN define. - use MAX_IP6_STR_LEN as a buffer size when ip6_to_str_buf() is used. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37000 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-11Rename vines_to_str() to tvb_vines_to_str() and make it take a pointer a TVBmorriss1-1/+2
and an offset instead of (generally) a pointer into a TVB. Move most of the contents of packet-vines.h into packet-vines.c: the moved content is only needed in that file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35912 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-21Introduce, and start using, tvb_eth_to_str().morriss1-0/+1
Export tvb_*_to_str() and put them in alphabetical order. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35602 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-16Introduce, and start using, tvb_fc_to_str() and tvb_fcwwm_to_str(): thesemorriss1-0/+2
functions act like their non-tvb counterparts except that they take a tvb and and offset instead of a pointer to a byte array. This basically saves the dissectors from having to call tvb_get_ptr()--which in this case eliminates a couple of typos in the length given to tvb_get_ptr(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35549 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-13Introduce, and start using, tvb_ip_to_str() and tvb_ip6_to_str(). Thesemorriss1-0/+2
do the same as the non-tvb equivalents but take a TVB and an offset instead of a pointer to an array of bytes. Their purpose is to prevent (many) dissectors from doing: ip_to_str(tvb_get_ptr(...)). (About the names and the location: I like the names as they are but the names imply that they should live in tvbuff.c. That would make some sense but I didn't want to pull to_str.h into tvbuff.c...) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35519 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalguy1-2/+4
argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32913 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03 From Yaniv Kaul: constify parameterswmeier1-21/+21
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 From me: Fix a number of instances where the function prototype or the function definition wasn't changed so there was a mismatch thus causing Windows (but not gcc) compilation errors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32365 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-02Revert SVN #32360 until Windows compilation errors corrected.wmeier1-15/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32361 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-02From Yaniv Kaul: constify parameterswmeier1-15/+15
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32360 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-28Added svn:ignore targets.stig1-14/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32055 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-23From Jakub Zawadzki:etxrab1-3/+3
Optimizations. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31967 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-19Use more unique names for certain enum constants.wmeier1-9/+9
(enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31572 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()guy1-2/+2
indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31227 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-06Rename address_to_str() to ep_address_to_str() because:krj1-1/+3
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29747 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-21Sanitize epan includeskrj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29502 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07Introduce se_address_to_str()etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28973 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-25From Nathan Hartwell via bug 2733:stig1-0/+1
Added time_secs_to_str_unsigned(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28840 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-15Introduce decode_bits_in_field() and use it.etxrab1-0/+2
clean up some left owers from previous checkin. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28373 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-25Constify a bunch of stuff, to squelch -Wwrite-strings warnings. guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25601 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-25replace oid_to_str_buf() and oid_to_str()lego1-3/+0
fix a potential buffer overflow due to a very liberal estimate by oid_repr_len() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22659 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-29Fix potential buffer overruns in address_to_str_buf() found by Andrej gerald1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20607 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-05From Douglas Pratley with trivial changes and documentation changes sfisher1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20040 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-10new FT_GUID handling - big/little endian supportedkukosa1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17566 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-01Add TIPC address as address type and use it in TIPC.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16641 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-28Export "bytestring_to_str()", and use it when adding the link-layerguy1-0/+1
address for the ND_OPT_TARGET_LINKADDR ICMPv6 packet type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15591 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-25timestamp display precision:ulfl1-0/+3
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15534 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20removal of even more sprintfsahlberg1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15457 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-08various code cleanup:ulfl1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15264 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-04new field type FT_GUIDkukosa1-0/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14845 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-05"oid_to_str()" and "oid_to_str_buf()" don't modify what the "oid"guy1-2/+2
argument points to, so make it a "const" pointer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14311 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-28New oid_to_str() and oid_to_str_buf() functionskukosa1-0/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14216 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-12change time_secs_to_str() and time_msecs_to_str() to take a signed integer ↵sahlberg1-2/+2
as parameter so we can handle negtive times git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14055 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-01"address_to_str()" and "address_to_str_buf()" don't modify the "address"guy1-2/+2
structure pointed to them by reference, so make the argument a "const" pointer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12911 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-10to_str.c declares this: gchar* ip6_to_str ..., make to_str.h do the samejmayer1-2/+2
(char -> gchar) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9629 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-09Add "ip6_to_str_buf()", by analogy to "ip_to_str_buf()".guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9216 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-08Get rid of the private "my_decode_bitfield_value()" a number ofguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9213 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-26Create an "address_to_str_buf()" routine, called by "address_to_str()",guy1-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()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8260 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-24Add a new function address_to_str to to_str.csahlberg1-1/+2
Implement conersion from address to string for IPv4 and IPv6 and update the conversation tables to use the new interface. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8234 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-24FC addresses are no longer extracted into guint32s, so "fc32_to_str()"guy1-2/+1
is no longer needed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8226 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-23Add FibreChannel to the types of protocols we can show a conversation list forsahlberg1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8223 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-23Update to FC to store the source and destination id in a guintsahlberg1-1/+2
to make it easier to add matching and response times later. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7916 f5534014-38df-0310-8fa8-9805f1628bb7
2003-02-12Make the argument to "abs_time_secs_to_str()" a "time_t" - it's in ANSIguy1-2/+2
C, and it's the right thing to pass to "localtime()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7125 f5534014-38df-0310-8fa8-9805f1628bb7
2003-02-11Add a "abs_time_secs_to_str()" routine that takes a UNIX time-since-the-guy1-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()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7124 f5534014-38df-0310-8fa8-9805f1628bb7
2002-12-09Work around annoying Apple C compiler/linker bug.guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6770 f5534014-38df-0310-8fa8-9805f1628bb7
2002-12-08Clean up a bit, and put "extern" back.guy1-9/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6768 f5534014-38df-0310-8fa8-9805f1628bb7
2002-12-08From Dinesh Dutt: Add Fibre Channel support, including FCIP, Basic FCgerald1-5/+10
header, Extended Link Service, Interswitch Link Service, FCP, and IPFC. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6757 f5534014-38df-0310-8fa8-9805f1628bb7
2002-11-28Make "ip6_to_str()" take a const pointer as an argument.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6687 f5534014-38df-0310-8fa8-9805f1628bb7