aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcpv6.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-1/+1
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-5/+5
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39328 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-11/+11
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-1/+1
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2011-08-11from Joe McEachern:etxrab1-0/+12
patch for DHCPv6 DS-Lite AFTR Option RFC 6334 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6222 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38478 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-27When parsing OPTION_REMOTE_ID, don't modify optlen or we'll return the wrongcmaynard1-4/+3
number of bytes consumed. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5962 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37439 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-19From Michael Mann via bug 2794:stig1-4/+4
Fixed display filters with obvious typos. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36713 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-26From Hadar Shoham:jake1-1/+14
Add support to correlation ID under DHCPv6 according to "CL-SP-CANN-DHCP-Reg-I06-110210" DHCPv6 option 17 Vendor-specific Information, sub option 2172 (paragraph 5.4.3) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36347 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-11Rename arphrdaddr_to_str() to tvb_arphrdaddr_to_str() and make it take a ↵morriss1-7/+5
pointer a TVB and an offset instead of (generally) a pointer into a TVB. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35913 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-11Check for places where tvb_bytes_to_str() or tvb_get_bytes_to_str_punct()morriss1-3/+2
should be used (instead of the non-tvb functions with a call to tvb_get_ptr()). Use those functions in a bunch of places. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35911 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-28I believe 0 was meant instead of sizeof(0)....wmeier1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35694 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-28Fix bug #5627: DHCPv6 dissector formats DUID_LLT time incorrectly sfisher1-2/+2
Add 30 years of seconds, not 20 years, since the DHCP_LLT time is seconds since Jan 1 2000 and epoch is 30 years before that. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35686 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-16Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure themorriss1-21/+21
return string is NULL terminated. There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_*(): just use proto_tree_add_item(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35548 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-2/+2
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-06Fix various typos and spelling errors.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35126 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-17Use val_to_str_ext() & friends to access sminmpec_values[];wmeier1-4/+4
Also: packet-nhrp.c: #include sminmpec.h not req'd; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34143 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-16Fix display of Client's FQDN and clear up the confusion with the S, O and N ↵sfisher1-12/+10
bits from the RFC descriptions. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33820 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-26From Hadar Shoham:jake1-11/+42
Change DHCPv6 option 17.8 to be the same as BOOTP option 43.8 CableLabs specs treat 43.8\17.8 inconsistently as either binary (3 byte) or string (6 byte) Additional cleanup and extension of interface ID presentation by me. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32982 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalguy1-1/+1
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-05-13From Hadar Shohami:jake1-15/+247
Add support to option 17 sub option 2171 for Packet Cable 2.0 according to CL-SP-CANN-DHCP-Reg-I03-090811.doc git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32788 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-10Indentation & whitespace cleanup (including: "4 space tabs" ==> spaces)wmeier1-1301/+1301
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32735 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-06#include <string.h> not needed.wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32411 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-01- Reorder some functions to avoid as many forward declarationsjmayer1-449/+450
as possible. - Rename a few hf_ variables - Display some values in the COL_INFO and options caption. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31765 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-01- Make all top level elements filterable.jmayer1-64/+46
- Get rid of dhcpv6_enterprise_number and replace it by a one line ..._add_item each time. - Move common code out of if () {} else {}. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31757 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-01Bugfix: Hilight the correct range of bytes when dissecting embeededjmayer1-6/+17
dhvpv6 payload. New feature: Allow minimalistic filtering on dhcpv6 options: type, length and value (value as hex dump) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31753 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-21From Alexandre Forget:jake1-1/+1
Fix the ORO suboption offset error. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31609 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-18Fix a number of gcc _Wshadow warningswmeier1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31557 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-09Fix for bug 3987:jake1-1/+1
Option Request option values are in 16 bit units. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29814 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29344 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-5/+5
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-02Make buildbot happy again... sake1-6/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27940 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-02From Garey Hassler:etxrab1-16/+520
CableLabs vendor-specific decoding for Bootp, DHCPv6. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3218 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27938 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-06From Alexis La Goutte (bug 3308):stig1-0/+16
Add DHCP(v4 & v6) Option for CAPWAP (RFC5417) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27625 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Fix for bug 3134: Dissection would stop at a malformed dhcpv6 client FQDNjmayer1-2/+9
option, which are currently being sent by MS Vista dhcpv6 clients. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27045 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-14Dump the contents of some elements.jmayer1-15/+29
Standardize printing of enterprise id. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26447 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-27Fix some warnings reported by gcc -Wshadow ... wmeier1-6/+6
Fix some spacing in packet-dcom.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25618 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-27From Francis Dupont:jake1-19/+195
DHCPv6 dissector is pretty old, i.e., it needs some updates (provided in the patch). For instance, RFC 5007 (leasequery) is not taken into account. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23950 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-08Apply yet another set of the optimization patches:etxrab1-2/+2
-set_str2add_str_val_to_str git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23406 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-27Fix for bug 1935. jake1-3/+19
RFC3315 says that the vendor-specific information option must encapsulate each option in the format code/length/value. The current dhcpv6 dissector does not differentiate these fields, it just puts it all together as one option-data field. Attached is a patch that addresses this issue. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23284 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-08From Chris Maynard <christopher.maynard@gtech.com> / Bug 1798: packet-d*.c ↵richardv1-1/+1
display filter fields incorrectly named. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23090 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-10Make dhcpv6 findable by name.martinm1-0/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21740 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28Remove almost all of the casts I committed recently and in place ofsfisher1-1/+1
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21253 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-27Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors sfisher1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21233 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-20Fix for bug 1235. Elapsed time is in 10ms units.jake1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19937 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-31Provide field names for fields with true/false values so theygram1-3/+3
can be searched on. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19761 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-11Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,guy1-14/+13
and that extract IPv6 addresses into a "struct e_in6_addr", with tvb_get_ipv4() and tvb_get_ipv6() calls - except for some that we remove, by using proto_tree_add_item(), rather than replacing. Have epan/tvbuff.h include epan/ipv6-utils.h, to define "struct e_in6_addr" (not necessary to declare the tvbuff routines, but including it there means "struct e_in6_addr" is guaranteed to be defined before those declarations, so we don't get compiler complaints if we define it *after* those declarations). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15758 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-10rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the ↵sahlberg1-2/+2
documentation in README.developer git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15270 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-28some more memification of tvb_get_string() no obvious memleaks fixed this ↵sahlberg1-4/+2
time :-( git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15131 f5534014-38df-0310-8fa8-9805f1628bb7