aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ip.c
AgeCommit message (Collapse)AuthorFilesLines
2012-04-30Remove unused variable not found by MSVC2010EE but found by OSX buildbot.Chris Maynard1-1/+0
svn path=/trunk/; revision=42360
2012-04-30Add Selective Directed Broadcast (RFC 1770) IP option dissection support.Chris Maynard1-3/+40
svn path=/trunk/; revision=42359
2012-04-30Add MTU probe, MTU reply and Traceroute IP option dissection support.Chris Maynard1-17/+94
svn path=/trunk/; revision=42353
2012-04-30Add missing RFC791 PROG security definition. Reorder ipopts[] so it matches ↵Chris Maynard1-13/+53
the order at http://www.iana.org/assignments/ip-parameters, which is ordered by 'Number'. Use the descriptions as they appear there as well. Add TODO placeholders in ipopt[] for the yet-to-be-implemented options. svn path=/trunk/; revision=42348
2012-04-30Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7064 :pascal1-59/+257
Dissect basic security option according to RFC 791 or RFC 1108 depending on the option length and the first two bytes content. Also dissect the extended security option. svn path=/trunk/; revision=42342
2012-04-18Fix some: 'cast discards qualifiers from pointer target type' warningsJakub Zawadzki1-1/+1
- Add const qualifier - Remove some strange casts svn path=/trunk/; revision=42131
2012-04-17From Jakub Zawadzki: fix, which changes types from FT_STRING to FT_DOUBLE. ↵Anders Broman1-100/+61
Fixes GeoIP: Display Filter comparisons operators do not seem to work for negative latitude or longitude values... https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5077 svn path=/trunk/; revision=42103
2012-04-09Set the minimum length of the Internet Timestamp option to 4 bytes instead ↵Chris Maynard1-7/+30
of 5. RFC 791 only states that the smallest legal value of the pointer is 5, not the smallest size for the option itself. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7043 Since backporting must be manually applied anyway, other changes include fixing the displaying of the EOOL and NOP options, as well as other options without a dissect routine associated with them. svn path=/trunk/; revision=41994
2012-04-05Use common code to have the same hf field for DSCP in IPv4 and IPv6.Anders Broman1-2/+12
svn path=/trunk/; revision=41953
2012-04-05Use common code to add ip version to the tree.Anders Broman1-4/+8
svn path=/trunk/; revision=41952
2012-03-21'tab-width/tabstop/tabSize' in editor modelines should really always be 8;Bill Meier1-3/+3
Also: In some cases do some whitespace cleanup and some minor reformatting. svn path=/trunk/; revision=41724
2012-03-20Add Quick Start IPv6 Option ( And shared Quick Start option between ↵Alexis La Goutte1-35/+2
IPv4/IPv6/TCP ) svn path=/trunk/; revision=41681
2012-03-15FT_BOOLEAN hf[] entries with a 0 'bitmask' should have 'display' = BASE_NONE;Bill Meier1-4/+4
svn path=/trunk/; revision=41582
2012-02-01Fix some typos.Chris Maynard1-7/+7
svn path=/trunk/; revision=40786
2011-11-26Don't pass 'len' to the dissect routine since we know there's only 1 byte ↵Chris Maynard1-1/+1
present. This fixes the buildbot complaint about using 'len' uninitialized. svn path=/trunk/; revision=40008
2011-11-26Add a few casts to try to make the buildbots happy.Chris Maynard1-4/+4
svn path=/trunk/; revision=40007
2011-11-26IP option improvements. While fixing bug 6561, I noticed some deficiencies ↵Chris Maynard1-147/+575
in the IP options dissection capabilities. Testing of these changes primarily used the capture file attached to that bug report as there were several IP options present. Packet 222 is an interesting packet that illustrates some of the new filters available. Further work is needed, but hopefully this is a good first step. Fuzz testing was performed using my own "menagerie". svn path=/trunk/; revision=40006
2011-11-23Display protocol ID consistently in decimal throughout. Append each IP ↵Chris Maynard1-886/+888
option to top-level Options field. Whitespace cleanup - the majority of the dissector used 2-space indentation, so that's the format chosen. Added modelines to match. svn path=/trunk/; revision=39994
2011-11-22For now, display the protocol in hexadecimal again so displaying it in ↵Chris Maynard1-1/+1
decimal doesn't get backported to the 1.6 and 1.4 trunks at the request of Joerg. svn path=/trunk/; revision=39986
2011-11-21Fix potential infinite loop introduced with r39961 and find by the buildbot. ↵Chris Maynard1-9/+11
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6599 svn path=/trunk/; revision=39963
2011-11-20Fix bug 6561: IPv4 UDP/TCP Checksum incorrect if routing header present.Chris Maynard1-26/+124
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6561 svn path=/trunk/; revision=39961
2011-10-24Fix encoding arg for various fcn calls:Bill Meier1-4/+4
- proto_tree_add_bits_item - proto_tree_add_bits_ret_val - proto_tree_add_bitmask - tvb_get_bits - tvb_get_bits16 - tvb_get_bits24 - tvb_get_bits32 - tvb_get_bits64 svn path=/trunk/; revision=39539
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-11Enable GeoIP lookups by default. Don't add GeoIP subtrees if we didn'tGerald Combs1-4/+5
find any databases. svn path=/trunk/; revision=39363
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-2/+2
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 svn path=/trunk/; revision=39288
2011-05-12Use IPv4 as protocol name, to align with IPv6.Stig Bjørlykke1-15/+15
svn path=/trunk/; revision=37070
2011-05-04Cleanup: replace sizeof(arr)/sizeof(arr[0]) with shorter array_length(arr)Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=36986
2011-03-28Make ip.fragments an FT_BYTES field so a PDML Export will display the bytes inChris Maynard1-1/+1
the value="..." attribute. Fixes bug 1520. svn path=/trunk/; revision=36378
2011-03-22Corrected hack for TAPA by checking for "not IPv4".Stig Bjørlykke1-1/+1
Coverity 343. svn path=/trunk/; revision=36244
2011-01-30Introduce "Fragment count" filter element for all protocols doing reassembly.Stig Bjørlykke1-0/+6
svn path=/trunk/; revision=35705
2010-12-23Clean up indentation.Guy Harris1-8/+8
svn path=/trunk/; revision=35257
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-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.) svn path=/trunk/; revision=35224
2010-11-10Added hint about "TCP segmentation offload" when IP length == 0.Stig Bjørlykke1-5/+11
Added expert info item for bogus IP length. Added hint about "IP checksum offload" for invalid IP checksum. Describe TSO in the preference setting. svn path=/trunk/; revision=34830
2010-11-03Use value_string_ext fcns to access certain value_string arrays;Bill Meier1-2/+3
Sort several value_string arrays to be in ascending order. Also: Minor whitespace cleanup. svn path=/trunk/; revision=34766
2010-11-02From Simon Leinen:Jaap Keuter1-3/+4
The IP Timestamp Option (RFC 781) has three variants. One (flag=0) just stores a sequence timestamps in the option, but the other two (flag=1 and flag=3) store alternate IP addresses and timestamps. From me: Mark option full when offset (pointer) is set to one, as per RFC 781. svn path=/trunk/; revision=34750
2010-10-05Enable "Support packet-capture from IP TSO-enabled hardware" by default.Gerald Combs1-1/+1
Like checksum offloading this seems to be common on modern systems. svn path=/trunk/; revision=34383
2010-09-16Make "4 NOP in a row" work again after changing the NOP name for TCP and IPStig Bjørlykke1-2/+3
in revisions 34095 and 34097. svn path=/trunk/; revision=34134
2010-09-10Only check for 4 NOP in a row within a uint32 boundary.Stig Bjørlykke1-2/+4
svn path=/trunk/; revision=34100
2010-09-10Follow TCP and expand description for "NOP" and "EOL" options to ↵Stig Bjørlykke1-2/+2
"No-Operation (NOP)" and "End of Options List (EOL)" respectively. svn path=/trunk/; revision=34097
2010-09-10Update dsfield ECN according to RFC3168.Stig Bjørlykke1-18/+20
svn path=/trunk/; revision=34092
2010-09-08Revert revision 33780, because the checksum is only calculatedStig Bjørlykke1-1/+1
from the header and not the content. svn path=/trunk/; revision=34080
2010-08-12From Chris Maynard via bug 5105:Stig Bjørlykke1-1/+1
IP should not compute the header checksum if within an error packet such as ICMP. svn path=/trunk/; revision=33780
2010-06-24Added description of ECT and ECN-CE, added TFS for the bit valuesStig Bjørlykke1-12/+12
and some item cleanup. svn path=/trunk/; revision=33313
2010-06-20Fix for bug 4888:Jaap Keuter1-0/+3
Restore setting DSCP column value, when relevant. svn path=/trunk/; revision=33270
2010-06-20Added an expert info for "4 NOP in a row" in IP and TCP.Stig Bjørlykke1-3/+14
svn path=/trunk/; revision=33265
2010-06-20Revert back to the old Flags entry.Stig Bjørlykke1-2/+6
Add number of bits used for Flags in the description. svn path=/trunk/; revision=33264
2010-06-02From Chris Maynard via bug 4014:Gerald Combs1-0/+1
This trivial patch merely displays the ICMP ID and sequence # in the Info column. svn path=/trunk/; revision=33056
2010-05-22Use value_string_ext for ip protocol.Anders Broman1-1/+1
svn path=/trunk/; revision=32914
2010-05-02Fix:Anders Broman1-1/+1
packet-ip.c:1311: warning: 'field_tree' may be used uninitialized in this function svn path=/trunk/; revision=32635
2010-05-02From Jakub Zawadzki:Anders Broman1-18/+17
patch for ip.flags (using proto_tree_add_bits_item). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4413 svn path=/trunk/; revision=32633