aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipv6.c
AgeCommit message (Collapse)AuthorFilesLines
2011-12-05Explicitly display "Source or Destination Address/Host" like IPv4.cmaynard1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40095 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-03Call tap_queue_packet() after pinfo data is updated. Also, like IPv4, ↵cmaynard1-10/+10
display next header field in decimal instead of hexadecimal (REF: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40083 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-03Some code needs to execute (potentially) whether the tree is NULL or not. ↵cmaynard1-3/+6
Also, changed "Left Segments" to read, "Segments Left" to better match RFC 2460 and RFC 3775 terminology. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40077 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-03If a type 2 Mobile IP routing header is present, only set pinfo->dst if ↵cmaynard1-1/+2
seg_left is non-zero. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6560 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40076 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-25Remove unused code (Add in Revision 836)alagoutte1-30/+1
Fix also some Clang/GCC Warning about unused variable git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40000 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-09Fix a number of proto_tree_add_item() encoding args.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39774 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-01Remove comma at the end of several enumerator lists.morriss1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39700 f5534014-38df-0310-8fa8-9805f1628bb7
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-18Do some more conversions of proto_tree_add_item() 'encoding' argwmeier1-1/+1
(previously missed). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39450 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-16Do some conversions of proto_tree_add_item() 'encoding' arg.wmeier1-1/+1
(previously missed). 57 FT_BOOLEAN: FALSE-->ENC_BIG_ENDIAN 31 FT_BOOLEAN: TRUE-->ENC_LITTLE_ENDIAN 10 FT_BYTES: ENC_BIG_ENDIAN-->ENC_NA 1 FT_BYTES: ENC_LITTLE_ENDIAN-->ENC_NA 21 FT_BYTES: FALSE-->ENC_NA 2 FT_BYTES: TRUE-->ENC_NA 2 FT_IPXNET: ENC_BIG_ENDIAN-->ENC_NA 6 FT_IPv6: ENC_BIG_ENDIAN-->ENC_NA 1 FT_IPv6: FALSE-->ENC_NA 6 FT_NONE: ENC_BIG_ENDIAN-->ENC_NA 19 FT_NONE: FALSE-->ENC_NA 3 FT_NONE: TRUE-->ENC_NA 1 FT_STRING: ENC_BIG_ENDIAN-->ENC_ASCII|ENC_NA 1 FT_STRING: ENC_LITTLE_ENDIAN-->ENC_ASCII|ENC_NA 5 FT_STRING: FALSE-->ENC_ASCII|ENC_NA 1 FT_STRING: TRUE-->ENC_ASCII|ENC_NA 4 FT_STRINGZ: ENC_NA-->ENC_ASCII|ENC_NA 8 FT_STRINGZ: FALSE-->ENC_ASCII|ENC_NA 1 FT_INT32: FALSE-->ENC_BIG_ENDIAN 1 FT_INT32: TRUE-->ENC_LITTLE_ENDIAN 11 FT_UINT8: 0-->ENC_BIG_ENDIAN 111 FT_UINT8: FALSE-->ENC_BIG_ENDIAN 17 FT_UINT8: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT16: 0-->ENC_BIG_ENDIAN 68 FT_UINT16: FALSE-->ENC_BIG_ENDIAN 18 FT_UINT16: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT24: FALSE-->ENC_BIG_ENDIAN 70 FT_UINT32: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT32: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT64: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT64: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT_STRING: FALSE-->ENC_ASCII|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39442 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-11Enable GeoIP lookups by default. Don't add GeoIP subtrees if we didn'tgerald1-1/+2
find any databases. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39363 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-25/+25
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-06Assume all strings coming from GeoIP are ISO-8859-1. Fix IPv6gerald1-6/+6
destination GeoIP lookups. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39299 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-43/+43
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-05Fix GeoIP-sans-IPv6 compilation.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39281 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-05Add GeoIP IPv6 database support. Tested with GeoIP 1.4.7, but oldergerald1-10/+279
versions *should* be supported. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39280 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-5/+5
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-08Remove unneeded #includes: proto.h,tvbuff.h,value_string.h,stdlib.h,...wmeier1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38413 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-19Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.wmeier1-4/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37716 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-09From Colin O'Flynn via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5980alagoutte1-3/+121
Add draft-ietf-6man-rpl-routing-header-03 Support (RH4 RPL Routing Header) From me : * Display Bytes of Address and Full Address (Generated) * Fix some Whitespace and minor enhance... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37632 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-12Prefix "fragments" with IPv6, as is done with IPv4.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37071 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-30Introduce "Fragment count" filter element for all protocols doing reassembly.stig1-0/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35705 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-16Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure themorriss1-2/+2
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-15/+15
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-09-23Fix for bug 5252:jake1-2/+5
Use real IPv6 destination address when RH0 has 0 segments left. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34199 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-21As suggested by Kovarththanan Rajaratnam in ↵morriss1-4/+4
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3548 : Clean up hf fields some more: mostly removing leading and trailing spaces from names and blurbs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34165 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-28Display 6to4 gateway IPv4 addresses and SLA IDs.gerald1-86/+152
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33984 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-28De-obfuscate the Teredo client address and add a de-obfuscated port.gerald1-8/+43
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33982 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-27Display Teredo encapsulated IPv4 server and client addresses.gerald1-1/+61
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33959 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-24Display ISATAP encapsulated IPv4 addresses.gerald1-2/+33
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33900 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-21Add a "summary in tree" option similar to v4.gerald1-4/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33878 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-21If we have something that looks like a stateless autoconfigurationgerald1-0/+42
address, add the corresponding MAC address to the tree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33870 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-18Use correct length for the IPv6 item.stig1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33565 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-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-03Changed "reassembled_length" -> "reassembled.length".stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31776 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-02Introduce "Reassembled length" filter element for all protocols doingstig1-0/+7
reassembly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31767 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-10From Clif Bratcher:jake1-0/+6
Add a tap hook to the IPv6 dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31230 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-17Remove the address operator from value_string arrays fed to VALS()dimeg1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30995 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-13From Ivan Sy:jake1-3/+87
Patch for IPv6 dissector to support the ff: - RFC 2460 sec 3, particularly Traffic Class field's 6-bit DSCP and 2-bit ECN - RFC 2474 sec 3, copied implementation of ip.c to determine DSCP codepoints - RFC 3168 sec 5, for ECN's ECT and CE bits - changed the comment git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30957 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-24* Prefer col_append_str instead of col_append_fstr for constant stringskrj1-2/+1
* Remove check_col guards git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30127 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()krj1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29446 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-2/+1
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-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-08From Ivan Sy:jake1-0/+3
Fixed IPv6 malformed packet when ip6_nxt (Next Header) is equal to "59". as per section 4.7 RFC 2460. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29334 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-39/+38
(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-05-19Update IP protocol numbers according to current IANA registery.jake1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28408 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-08FT_BOOLEAN fields with bitmask: Display is 'parent bitfield width' not BASE...wmeier1-14/+4
Also: Use global tfs_yes_no TFS structure in two cases (packet-ipv6.c) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28311 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27050 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-07Clean up indentation (just use two spaces in the big case statement forguy1-88/+94
extension headers, just as is used elsewhere). Add some blank lines to make that case statement a bit easier to read. Fix typo. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26724 f5534014-38df-0310-8fa8-9805f1628bb7