summaryrefslogtreecommitdiff
path: root/print-ipnet.c
Commit message (Collapse)AuthorAgeFilesLines
* Leave it up to ip6_print() to handle non-IPv6-capable systems.Guy Harris2014-10-011-2/+0
| | | | | | | | | | | | Always define and declare ip6_print(), always compile print-ip6.c, and always call it if we recognize a payload as IPv6. If INET6 isn't defined, ip6_print() will just print the length and note that printing isn't supported. That way, we don't do weird dissection of IPv6 packets on systems without IPv6 support, due to, for example, ethertype_print() returning 0 ("not dissected") for IPv6 packets on those systems (IPv6-over-Frame Relay was dissected weirdly due to this).
* Netdissectify the to-name resolution routines.Guy Harris2014-04-041-3/+3
| | | | | | | | Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
* make use of ND_DEFAULTPRINT()Denis Ovsienko2014-03-261-1/+1
|
* make use of NETDISSECT_REWORKEDDenis Ovsienko2014-03-151-1/+1
| | | | | Update the already converted decoders to define the macro and to include interface.h instead of netdissect.h. Fix incurred compile errors.
* refine some past NDO conversionsDenis Ovsienko2014-03-121-2/+0
| | | | Don't include unneeded headers and replace a few remaining printf's.
* don't include pcap.h needlesslyDenis Ovsienko2014-02-281-1/+0
| | | | | | | | | | Both interface.h and netdissect.h include <pcap.h>, thus most files should not include it regardless if these need it or not. The only exceptions so far remain: * addrtoname.c * missing/datalinks.c * missing/dlnames.c * tcpdump.c
* don't include addrtoname.h needlesslyDenis Ovsienko2014-02-251-1/+0
|
* Pull a bunch of headers into the only source file that includes them.Guy Harris2013-12-301-1/+14
| | | | | | For headers included in only one source file, put the header contents in the source file in question, and get rid of a bunch of stuff from the header not used in the source file.
* justify declarations of struct tok arraysDenis Ovsienko2013-09-241-1/+1
| | | | | | Make sure all of them are declared const and most of them -- static. Proper declaration of token arrays is a common review point for new code that is based on existing decoders. Thus fix the issue at its root.
* Convert the IPv6 printer to use netdissect.Guy Harris2010-11-071-1/+1
|
* This commit makes ipnet_if_print the first NDO aware top-levelMichael Richardson2010-01-101-2/+3
|\ | | | | | | | | | | | | | | printer. Merge commit 'origin/master' Conflicts: netdissect.h
| * XXX_if_print() routines are not passed a "struct netdissect_options *",Guy Harris2009-11-261-3/+3
| | | | | | | | | | | | so ipnet_if_print() can't expect one. ipnet_print() isn't called from outside print-ipnet.c, so make it static.
| * ether_encap_print() is a utility for use by printers for protocols thatGuy Harris2009-11-251-40/+16
| | | | | | | | | | | | use Ethernet types, to call the appropriate printer routine for the encapsulated type. IPNET is the only protocol using IPNET types, so ipnet_encap_print() isn't needed.
* | ether_encap_print() is a utility for use by printers for protocols thatGuy Harris2010-01-101-40/+16
|/ | | | | | use Ethernet types, to call the appropriate printer routine for the encapsulated type. IPNET is the only protocol using IPNET types, so ipnet_encap_print() isn't needed.
* updated print-ipnet.c to use netdissect options structureMichael Richardson2009-11-241-27/+27
|
* The patches attached to this email are required to get a fully working tcpdumpDarren Reed2009-11-241-0/+132
on OpenSolaris, or Solaris Express Community Edition, build 125 and later. The attached patch introduces support for printing out the IPNET headers used for packet capture inside of zones that share their networking with the global zone and for packets "transmitted" between zones. tcpdump 4.0.0 will ship with builds 129 and later of OpenSolaris/SXCE and when run as root with the '-L' option, should behave as below to indicate that the system is fully functional: Data link types (use option -y to set): DOCSIS (DOCSIS) (printing not supported) IPNET (Solaris IPNET) EN10MB (Ethernet) Cheers, Darren