aboutsummaryrefslogtreecommitdiffstats
path: root/ipproto.c
AgeCommit message (Collapse)AuthorFilesLines
2003-02-04From Teemu Rinta-aho: draft 20 MIPv6 support (now in a file of its own).Guy Harris1-1/+2
svn path=/trunk/; revision=7071
2002-08-30More fixes from Albert ChinRichard Sharpe1-5/+5
svn path=/trunk/; revision=6135
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-3/+3
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2002-01-13Add a preferences page for the name resolution flags.Guy Harris1-3/+7
Separate the preferences value for those flags and the name resolution code's value into separate variables; this means that the resolution code no longer depends on the preferences code, and may let us eventually have the current setting and the preference setting differ (so that a user can temporarily override the preference setting without causing subsequent saves of the preferences to save the temporary value). Add routines to create various types of widgets for preferences, and to fetch the values for "enumerated" preferences, and use them both in the code to handle hardwired preference pages and table-driven preference pages. svn path=/trunk/; revision=4536
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez1-3/+1
svn path=/trunk/; revision=4199
2001-07-21There is really no need to have the BGP dissector and the LDP dissectorGuy Harris1-3/+3
have two independent "value_string" tables mapping RFC 1700 address family numbers to names, nor is there any need to have the BGP dissector and the PIM dissector have two independent sets of #defines for RFC 1700 address family numbers; put a single "value_string" table in "afn.c" and put a declaration of it, and #defines for the address family numbers, into "afn.h", and have the dissectors use that. Move the #define for PGM into "ipproto.h", and add an entry for it in the "value_string" table in "ipproto.c". Have the PGM dissector use the standard Ethereal mechanisms for resolving addresses, and have it use "value_string" tables for mapping option types, the OPX bits, and packet types to strings. Use "bytes_to_str()" to turn byte arrays into strings of hex digits. Pass the packet type string to "dissect_pgmopts()" as an argument, rather than making it a global. Don't use "proto_tree_add_XXX_format" routines if you can possibly just use "proto_tree_add_XXX"; give various fields the correct radix and type, and VALS() strings if necessary, to make that happen (and to make filtering on them more pleasant). Put the type, length, and total length of the options into the protocol tree as separate fields. Don't have separate type, length, and OPX fields for every type of option; one field will suffice. Don't format a string with "sprintf()" and then pass that string to "col_add_fstr()" with a format of "%s" and the string as an argument - "col_add_fstr()" can format strings itself (that's what the "f" stands for). Don't byte-swap and then un-byte-swap IPv4 address fields in the header, just leave them network byte order to start with. Use the correct fields for "proto_tree_add_XXX", rather than using the same field multiple times. Quit early if an address family identifier isn't AFNUM_INET, as that means the structure we use to dissect the header doesn't match the actual header. svn path=/trunk/; revision=3761
2001-04-17Move the declaration of "ipprotostr()" out of "epan/packet.h" into a newGuy Harris1-4/+2
"ipproto.h" header file. svn path=/trunk/; revision=3313
2001-04-15There's no "enable name resolution in captures" preference in Ethereal,Guy Harris1-2/+3
and never was - there's only an Ethereal-wide "enable name resolution" preference. Name it just "name_resolve". Replace all tests of "g_resolving_actif" with tests of "prefs.name_resolv", and replace all code that sets "g_resolving_actif" with code that sets "prefs.name_resolv", so that the setting of "prefs.name_resolv" actually affects whether names are resolved or not. svn path=/trunk/; revision=3300
2001-04-13Nothing in "etypes.h" is used by "ipproto.c", so there's no need toGuy Harris1-2/+1
include "etypes.h". svn path=/trunk/; revision=3299
2001-03-05Move the definition of IP_PROTO_IGRP to "packet-ip.h", and put an entryGuy Harris1-3/+5
for IGRP in the table in "ipproto.c". Get rid of a duplicate entry for TCP in the same table, and also get rid of the entry for IP_PROTO_IPV4 right after IP_PROTO_IPIP, as IP_PROTO_IPIP and IP_PROTO_IPV4 are both 4. svn path=/trunk/; revision=3106
2000-08-11Miscellaneous code cleaningLaurent Deniel1-11/+4
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-05-26Initial SCTP support (showing it by name from "ipprotostr()") fromGuy Harris1-1/+2
Michael Tuexen. svn path=/trunk/; revision=2011
2000-03-21Add support for TXT and WKS records to the DNS dissector.Guy Harris1-3/+5
Add EIGRP and VINES to the list of protocols "ipprotostr()" knows about. Get rid of the "proto_vals" table in "packet-ip.c" - it's not used, and the two entries it had that weren't in the table in "ipproto.c" have been moved there. svn path=/trunk/; revision=1735
2000-01-22Fix files that had Gilbert's old e-mail address or that didn't have myGuy Harris1-2/+2
forwarding e-mail address. svn path=/trunk/; revision=1522
1999-12-06Remove #include "globals.h" from packet-atalk.c (not needed) and fromGilbert Ramirez1-1/+6
packet-ipv6.h. Of all the files that include packet-ipv6.h, only ipproto.c needs "globals.h", so I put the #include in ipproto.c svn path=/trunk/; revision=1229
1999-11-21Added Heikki Vatiainen's <hessu@cs.tut.fi> VRRP dissector.Gilbert Ramirez1-1/+2
svn path=/trunk/; revision=1083
1999-10-22If one wants to look up a value in a "value_string" table, and get backGuy Harris1-2/+2
either the corresponding string on success or NULL on failure, one should use "match_strval()", rather than using "val_to_str()" with a null format - "val_to_str()" uses the format if the lookup fails, so it won't work correctly (e.g., it may drop core) if the format string is NULL. svn path=/trunk/; revision=910
1999-10-15IPComp (RFC2393) decoding.Jun-ichiro itojun Hagino1-1/+2
svn path=/trunk/; revision=838
1999-10-14implement ipprotostr() in ipproto.c, which basically does ipprotobynumber()Jun-ichiro itojun Hagino1-0/+118
for ip.ip_p and ip6.ip6_nxt (and other IPv6 header chain). use val_to_str() as much as possible in dissect_{ipv6,pim,ripng}(). make --disable-zlib a default for netbsd (temporary workaround). svn path=/trunk/; revision=827