aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ip.c
AgeCommit message (Collapse)AuthorFilesLines
2009-03-22P64 changes: Fix some cases for which size_t is not requiredBill Meier1-5/+5
svn path=/trunk/; revision=27822
2009-03-08Redesign GeoIP information presentation.Jaap Keuter1-77/+153
svn path=/trunk/; revision=27655
2009-03-03Add expert info when bad checksum.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=27593
2009-02-04add display of GeoIP latitude/longitudeUlf Lamping1-2/+36
This is a crude hack, as the current Wireshark interface to GeoIP is not really suitable for reading several values of a single GeoIP database :-( svn path=/trunk/; revision=27365
2008-12-23Add GeoIP to the Windows build. Fix a remaining geoip_ -> geoip_db_Gerald Combs1-4/+4
conversion. svn path=/trunk/; revision=27098
2008-12-23GeoIP expects IPv4 addresses in host byte order.Gerald Combs1-11/+11
svn path=/trunk/; revision=27097
2008-12-19Rename geoip.[ch] to geoip_db.[ch] so we don't collide with GeoIP.h. RenameGerald Combs1-15/+165
some functions to match. Add GeoIP lookups to the IP dissector. Add a preference for GeoIP lookups, which is disabled by default. svn path=/trunk/; revision=27063
2008-12-16If a packet is fragmented, show the packet id in the info column.Jörg Mayer1-2/+3
svn path=/trunk/; revision=27021
2008-12-02Don't set the tvbuff actual length based on the IP total length untilGuy Harris1-3/+8
after we've checked whether the total length is less than the header length, so that we don't believe an obviously bogus total length. (This doesn't catch all cases of bogus total lengths, but it catches, for example, a total length of 0.) svn path=/trunk/; revision=26901
2008-09-30Minor proto_reg_handoff cleanup: use find_dissector when appropriate.Bill Meier1-1/+1
svn path=/trunk/; revision=26308
2008-09-15Do not flag a low TTL if sending to a multicast address (224.0.0.0/4).Stig Bjørlykke1-10/+15
svn path=/trunk/; revision=26195
2008-08-14Use const with value_string array definitionsBill Meier1-1/+1
svn path=/trunk/; revision=26028
2008-06-25Constify a bunch of stuff, to squelch -Wwrite-strings warnings. Guy Harris1-2/+2
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
2008-05-14Fix some of the Errors/warnings detected by checkapi.Bill Meier1-2/+3
svn path=/trunk/; revision=25290
2008-03-01Rewrote to use g_strlcpy and g_strlcat.Stig Bjørlykke1-7/+8
svn path=/trunk/; revision=24525
2008-02-07Removed even more "statement not reached" warnings.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=24286
2007-11-28Didier Gautheron:Anders Broman1-11/+12
icmp dissector must call subdissectors even if tree is NULL svn path=/trunk/; revision=23653
2007-11-09Apply yet another set of the optimization patches:Anders Broman1-21/+24
Only call get_hostname once. svn path=/trunk/; revision=23410
2007-10-23Apply the small performance enhancment patches for:Anders Broman1-1/+1
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe svn path=/trunk/; revision=23252
2007-09-28queue the ip/eth headers for tapping before calling any subdissectors Ronnie Sahlberg1-7/+6
so that they can be tapped even if the subdissectors cause an exception this fixes bug 1527 svn path=/trunk/; revision=23004
2007-09-24From Jonathan:Jaap Keuter1-0/+14
Capture files generated on TCP segmentation offload (TSO) hardware have an all-zero IP-length field in outbound packets. Wireshark errors out on the small length and refuses to parse the packet further. svn path=/trunk/; revision=22931
2007-09-02Fix indentation.Guy Harris1-29/+29
svn path=/trunk/; revision=22768
2007-08-29Don't show fragment offset as a bit field, but note number of bits used in ↵Martin Mathieson1-2/+2
long text. svn path=/trunk/; revision=22727
2007-08-28From Todd Martin: "Flag IP TTL more intelligently".Bill Meier1-6/+22
Also: Change default "Low TTL" color filter to match. svn path=/trunk/; revision=22715
2007-08-22Show which bits 'fragment offset' comes from (I had to look it up :( )Martin Mathieson1-1/+1
svn path=/trunk/; revision=22586
2007-08-16add an expert info, if ip.ttl < 5Ulf Lamping1-2/+11
svn path=/trunk/; revision=22521
2007-07-30As requested by Mike Rogovin: register the ICMP dissector by name. For ↵Jeff Morriss1-29/+31
completeness, also register ICMPv6 by name. svn path=/trunk/; revision=22422
2007-06-04From Michael Scharf: Add support for TCP Quickstart.Michael Tüxen1-0/+57
svn path=/trunk/; revision=22041
2007-05-26From Ville Nuorvala :Sebastien Tandel1-27/+35
adds support for the following RFCs (and RFC-to-be): - RFC 3519 Mobile IP Traversal of Network Address Translation (NAT) Devices - RFC 3543 Registration Revocation in Mobile IPv4 - RFC 4433 Mobile IPv4 Dynamic Home Agent (HA) Assignment (including the not yet published errata about the message extension using the short message extension format) - draft-ietf-mip4-message-string-ext Mobile IPv4 Message String Extension svn path=/trunk/; revision=21948
2007-05-22revert changes of r21879 which fix gcc bugs. These changes was from mipv4Sebastien Tandel1-35/+27
improvements patch. svn path=/trunk/; revision=21886
2007-05-22fix gcc 4.2 warnings (qualifier type)Sebastien Tandel1-27/+35
svn path=/trunk/; revision=21879
2007-05-09Fix for bug 1497.Jaap Keuter1-5/+5
Set DSCP_VALUE column info without tree to support export operations. svn path=/trunk/; revision=21738
2007-03-04The beginnings of a TAPA dissector (Trapeze Access Point Access Protocol).Jörg Mayer1-1/+14
Admittedly not much, so if you have any ideas what the rest means or where I'm wrong please provide feedback. As tapa uses udp 5000 and ip protocol 4, I needed to add a hack for the ip part to properly dispatch betweeen ipip and tapa-tunnel (actually I was unable to turn the ipip dissector into a heuristic dissector :-) svn path=/trunk/; revision=20971
2007-01-19From Paul Moore:Jaap Keuter1-0/+265
This patch adds support for the IPv4 Commercial IP Security Option (CIPSO) as defined in the IETF draft, draft-ietf-cipso-ipsecurity-01.txt. While this draft has long since expired, it has become a de-facto standard for labeled networking with support from several commercial Multi-Level Security (MLS) operating systems such as HP-UX CMW and Trusted Solaris; in addition, Linux Kernels 2.6.19 and later provide support for CIPSO in conjunction with SELinux. Copies of the expired CIPSO draft can be found at the NetLabel project page: * http://netlabel.sf.net svn path=/trunk/; revision=20506
2007-01-14taking a look at it the name_str var is unnecessaryLuis Ontanon1-3/+1
svn path=/trunk/; revision=20428
2007-01-14As pointed out by Sebastien Tandel a buffer is allocated unconditionally ↵Luis Ontanon1-4/+2
when it might not be necessary. svn path=/trunk/; revision=20427
2006-12-17Display icmp echo/echo reply sequence numbers in decimal in addition to hex,Stephen Fisher1-1/+1
so that it is easier to match it with the output of a ping program. svn path=/trunk/; revision=20142
2006-12-11From Thomas Sillaber:Stephen Fisher1-1/+5
Create two new columns: IP DSCP and L2 COS (802.1p) svn path=/trunk/; revision=20118
2006-06-19Fix Ethereal bug 994 in Wireshark:Anders Broman1-5/+7
MIP Advertisement reverse tunneling flag not dissected svn path=/trunk/; revision=18520
2006-06-09from Stephen FisherRonnie Sahlberg1-6/+7
make icmp timestamps more readable svn path=/trunk/; revision=18406
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-03-16If version is v6 let the IPv6 dissetor handle it.Anders Broman1-0/+7
svn path=/trunk/; revision=17649
2006-01-09Add UDP-Lite packets to the UDP statisticsJaap Keuter1-0/+1
svn path=/trunk/; revision=16983
2006-01-03Jon Oberheide:Jörg Mayer1-1/+1
Ethereal does not take into account the protocol field of the IP header when reassembling fragmented packets as specified in RFC791. This can lead to incorrect reassembly of packets with an identical src address, dst address, and identification number, but with differing protocols. The attached patch includes the protocol in the generation of the id used to index into the reassembly table. svn path=/trunk/; revision=16937
2005-12-15from Jaap KRonnie Sahlberg1-1/+2
fix for bug 306 svn path=/trunk/; revision=16812
2005-10-13get rid of some strcpy()Ronnie Sahlberg1-4/+4
svn path=/trunk/; revision=16211
2005-10-03from Yaniv Kaul: add a Preference setting for IP checksum validationUlf Lamping1-35/+44
svn path=/trunk/; revision=16080
2005-09-28fix #480: Change defaults for all reassembling settings to ONUlf Lamping1-1/+1
I've changed all settings I could find to TRUE. It might be reasonable to change some protocol settings back to FALSE, if reassembling fails very often. svn path=/trunk/; revision=16048
2005-09-21Use BASE_DEC_HEX for the identifier field; that means we don't have toGuy Harris1-2/+2
use "proto_tree_add_uint_format()", we can just let the Ethereal core format it. svn path=/trunk/; revision=15922
2005-09-17Move a pile of protocol-related headers from the top-level sourceGuy Harris1-8/+8
directory to the epan directory. Some of them should perhaps ultimately be moved to epan/dissectors, if they pertain only to stuff exported by a particular dissector. Fix Gerald's e-mail address in files we're moving. svn path=/trunk/; revision=15844