summaryrefslogtreecommitdiff
path: root/print-ipnet.c
Commit message (Collapse)AuthorAgeFilesLines
* IPNET: Use ND_TCHECK_LEN() for a bounds checkFrancois-Xavier Le Bail2020-11-121-9/+2
| | | | | | | Moreover: Define ND_LONGJMP_FROM_TCHECK. Remove a redundant ND_TCHECK_SIZE call. Remove a trunc label.
* Remove useless 'return' at end of void functions (style)Francois-Xavier Le Bail2020-09-281-1/+0
|
* Rename a field of the netdissect_options structureFrancois-Xavier Le Bail2020-07-141-2/+2
|
* IPNET: Update the link-layer dissector to a void functionFrancois-Xavier Le Bail2020-02-081-10/+8
| | | | | | | Moreover: Remove trailing "_if" from protocol name. Remove a useless ND_TCHECK_1 test (GET_U_1 is used). Remove a no longer used 'trunc' label.
* Use the new GET_ macros instead of the EXTRACT_ onesFrancois-Xavier Le Bail2019-03-261-6/+6
| | | | | | | The exceptions are currently: Some EXTRACT_ in print-juniper.c, not used on packet buffer pointer. An EXTRACT_BE_U_3 in addrtoname.c, not always used on packet buffer pointer.
* Print truncations with nd_print_trunc() instead of tstr[] stringsFrancois-Xavier Le Bail2018-05-041-3/+2
| | | | | | | | Remove the tstr[] strings. Update the output of some tests accordingly. Moreover: Add or update some ndo_protocol fields.
* Remove useless commentsFrancois-Xavier Le Bail2018-03-191-8/+0
|
* Add the ndo_protocol field in the netdissect_options structureFrancois-Xavier Le Bail2018-03-161-0/+2
| | | | | Update this field in printer entry functions. It will be used for some printings.
* Remove function specifier 'inline' in printersFrancois-Xavier Le Bail2018-01-261-1/+1
| | | | | | | | It was mostly used with large functions. Moreover: Put some function definition names at the beginning of line. Fix a space.
* Always include <config.h> rather than "config.h".Guy Harris2018-01-211-1/+1
| | | | | | | | This can prevent bizarre failures if, for example, you've done a configuration in the top-level source directory, leaving behind one config.h file, and then do an out-of-tree build in another directory, with different configuration options. This way, we always pick up the same config.h, in the build directory.
* Use quoted include netdissect-stdinc.h instead of angle-bracketed oneFrancois-Xavier Le Bail2018-01-211-1/+1
|
* Clean up signed vs. unsigned.Guy Harris2018-01-111-2/+2
|
* Update ND_PRINT() as a variadic macroFrancois-Xavier Le Bail2018-01-071-9/+9
|
* Use ND_TTEST_SIZE()/ND_TCHECK_SIZE() macros (1/n)Francois-Xavier Le Bail2018-01-031-1/+1
|
* IPNET: Use nd_ types, add EXTRACT_ calls, tstr[] and bounds checksFrancois-Xavier Le Bail2018-01-021-17/+27
|
* Add a summary comment in all other printersFrancois-Xavier Le Bail2016-08-151-0/+2
| | | | | | | Moreover: Remove some redundant comments Update some summary comments Update the specification URL for ATA over Ethernet (AoE) protocol
* Rename 'tcpdump-stdinc.h' to 'netdissect-stdinc.h'Francois-Xavier Le Bail2015-09-101-1/+1
| | | | Get the full log via: git log --follow netdissect-stdinc.h
* Printers must include 'netdissect.h', not 'interface.h'Francois-Xavier Le Bail2015-09-051-1/+1
|
* Fix a bunch of de-constifications.Guy Harris2015-04-261-3/+3
|
* dismiss NETDISSECT_REWORKED macroDenis Ovsienko2015-03-221-1/+0
| | | | | | | The purpose of this macro was to enable the file-by-file switch to NDO, after which only tcpdump.c had a use of it and the definitions guarded by it. Update tcpdump.c not to require them any more and dismiss the unused definitions.
* 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