aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
AgeCommit message (Collapse)AuthorFilesLines
1999-08-17Converted more of the IP fields to filterable fields.gram1-11/+32
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@505 f5534014-38df-0310-8fa8-9805f1628bb7
1999-08-14Add ICMP to the set of packet types counted in the window shown while aguy1-1/+4
capture is in progress. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@491 f5534014-38df-0310-8fa8-9805f1628bb7
1999-08-10Fix the list of descriptions of codes in ICMP Unreachable messages.guy1-2/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@458 f5534014-38df-0310-8fa8-9805f1628bb7
1999-08-09Added John McDermott's patch for handling ICMP Unreachable|Fragmentationgram1-1/+30
Required packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@455 f5534014-38df-0310-8fa8-9805f1628bb7
1999-08-05Fix a "proto_tree_add_text()" call that should've been aguy1-2/+2
"proto_tree_add_item()" call (and fix the length passed to it, which, it appears, has been wrong for ages). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@439 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-31Remove srcip and destip from packet_info since it is not safe to affectdeniel1-3/+2
string pointer from the result of ip_to_str (statically allocated string). Use the ip_src and the new field ip_dst in follow.c to build a correct string display filter. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@408 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-29Made the protocol (but not the fields) use the new proto_tree routine,gram1-20/+28
allowing users to filter on the existence of these protocols. I also added packet-clip.c to the Nmake makefile. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@402 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-17Added just enough fields to TCP to support "Follow TCP Stream". It works now.gram1-4/+41
Added the protocol IDs for ipx and IGMP, but not their fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@365 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-15Modified the proto_register_field_array usage again. Thanks to Guy'sgram1-11/+31
suggestion, this new method using a static array should use less memory and be faster. It also has a nice side-effect of making the source-code more readble, IMHO. Changed the print routines to look for protocol proto_data instead of looking at the text label as they did before, hoping that the data hex dump field item starts with "Data (". Added the -G keyword to ethereal to make it dump a glossary of display filter keywords to stdout and exit. This data is then formatted with the doc/dfilter2pod perl program to pod format, which is combined with doc/ethereal.pod.template to create doc/ethereal.pod, from which the ethereal manpage is created. This way we can keep the manpage up-to-date with a list of fields that can be filtered on. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@364 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-08Added Johan's RADIUS dissector, finally. I modified it to fit in with thegram1-46/+13
new proto_tree routines. I also removed the check for lex and yacc from wiretap's configure script. The IP dissector now uses proto_register_field_array(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@348 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-07Created a new protocol tree implementation and a new display filtergram1-115/+176
mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@342 f5534014-38df-0310-8fa8-9805f1628bb7
1999-06-21Added "0x" to a couple of proto_tree_add_item printf-style labels thatgram1-3/+3
were printing values in hex. The lack of "0x" in fron of the hex numbers made me think the values were decimal, causing me to waste a bit of time during debugging. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@323 f5534014-38df-0310-8fa8-9805f1628bb7
1999-06-11Added RSVP protocol dissector.gram1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@304 f5534014-38df-0310-8fa8-9805f1628bb7
1999-06-11Added PPPoE, PPTP, GRE, and ISAKMP dissectors.gram1-1/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@303 f5534014-38df-0310-8fa8-9805f1628bb7
1999-05-20Dissect ICMP Router Discovery packets (router advertisements and routerguy1-2/+37
solicitations). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@295 f5534014-38df-0310-8fa8-9805f1628bb7
1999-05-12Minor performance improvement and TCP option decoding fixed (when no tree).deniel1-26/+27
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@283 f5534014-38df-0310-8fa8-9805f1628bb7
1999-04-05FTP, POP, and Telnet support from Richard Sharpe.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@237 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-30Bugfix: The IP Precedence (first three bits in the TOS field) has been clearedhannes1-3/+2
by accident -> It should be displayed correctly with this fix git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@234 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-28Jun-ichiro's IPv6 patch is merged in with ethereal and now uses the newgram1-2/+29
proto*() functions. The configure script tries to use ipv6 name resolution if it knows the type of ipv6 stack the user has (this can be avoided with the --disable-ipv6 switch) Additionally, the configure script now deals with wiretap better. If the user doesn't want to compile wiretap, the wiretap is never visited. A few unnecessary #includes were removed from some wiretap files, and a CPP macro was moved from bpf.c to wtap.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@229 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-23Removed all references to gtk objects from packet*.[ch] files. They nowgram1-108/+256
reference the protocol tree with struct proto_tree and struct proto_item objects. That way, the packet decoding source code file can be used with non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged some of the information in packet.h to more appropriate places (like other packet-*.[ch] files). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@223 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-09Decode more stuff in an ICMP packet.guy1-1/+67
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@213 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-09Make the arrays of pointers to strings for ICMP decoding static, asguy1-24/+38
they're not used outside this file. Compute their sizes with the standard "number of elements in an array" C idiom, rather than hardcoding them as numbers. Add the "information request" and "information reply" ICMP packet types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@212 f5534014-38df-0310-8fa8-9805f1628bb7
1999-02-09When doing a capture, decode enough of the incoming packets to correctlyguy1-1/+18
update the packet counts and percentages in the dialog box popped up during a capture, even for non-Ethernet captures. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@184 f5534014-38df-0310-8fa8-9805f1628bb7
1999-02-08I removed the bit-fields that depended upon gcc's ability to use any typegram1-7/+7
of variable as a bit field container. ANSI specs only allow unsigned ints to host bit fields; IBM's C compiler is very ANSI-strict. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@183 f5534014-38df-0310-8fa8-9805f1628bb7
1998-12-29* Added Joerg Mayer's Vines patchgerald1-4/+41
* Added Joerg to the AUTHORS file * Added Guy's bitfield decode patch * Fixed time output git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@142 f5534014-38df-0310-8fa8-9805f1628bb7
1998-11-17* Added column formatting functionality.gerald1-28/+37
* Added check_col(), add_col_str() and add_col_fmt() to replace references to ft->win_info. * Added column prefs handling code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@97 f5534014-38df-0310-8fa8-9805f1628bb7
1998-11-12A lengthy patch to add the wiretap library. Wiretap is not used by defaultgram1-2/+1
because it is still in its infancy, but it can be compiled in optionally. The library exists in its own subdirectory ethereal/wiretap. This patch also edits all the packet-*.c files to remove the #include <pcap.h> line which is unnecessary in these files. In the ethereal code, file.c is the most heavily modified with #ifdef WITH_WIRETAP lines for the optional library. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@82 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-28 Add the "Maximize security" type of service for IP, from RFCguy1-15/+18
1455. Make the arguments to "val_to_str()" and "match_strval()" that point to things those routines don't modify pointers to "const", and make the "value_string" tables passed into those routines in "packet-ip.c" "const". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@72 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-20 Add a "val_to_str()" routine that calls "match_strval()" and, ifguy1-21/+7
it returns NULL, formats the value with the format passed in as an argument, and returns a pointer to that static buffer. Change several "match_strval()" calls to use "val_to_str()". In "dissect_ospf()", use "match_strval()" to look up the packet type, and use "Unknown" if it doesn't find a match. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@66 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-16* Copied in the correct GNU license (I'm such a goober)gerald1-11/+10
* Hacks to the filter interface (Gerald) * About box (Laurent) * AppleTalk support (Simon) * Mods to the match_strval routine (Gerald) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@61 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-13Add a routine to dissect IP or TCP options (and, from a look at RFCguy1-10/+380
1883, it should, perhaps with some additions, be able to handle IPv6 options as well). Make the IPv4 and TCP dissectors use it. Fix a typo in the IP dissector ("Unknon" for "Unknown"). Show the IP and TCP header lengths as byte counts rather than 4-byte-word counts. Show the protocol field value of an IP header as a name if it's a protocol we know about. List the acknowledgment and urgent pointer values in a TCP header only if the corresponding flag is set. Make the ETT_ values members of an enum, so that the compiler automatically assigns them sequential integer values (at least if said compiler conforms to the ANSI C standard). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@45 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-10* Fixes for bugs introduced in last night's commit.gerald1-35/+37
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-10* OSPF alignment fixes (Gerald)gerald1-11/+11
* FDDI support (Laurent, Guy) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-27Merged in a _huge_ patch from Guy Harris. It adds a time stap column,gerald1-11/+11
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-17* Added Mike Hall's TCP reconstruction code.gerald1-1/+10
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-16Added ID tags to the beginning of each source file.gerald1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-16Initial revisiongerald1-0/+319
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2 f5534014-38df-0310-8fa8-9805f1628bb7