]> The Tcpdump Group git mirrors - tcpdump/commit
Use nd_ types, clean up ICMPv6 dissection.
authorGuy Harris <[email protected]>
Tue, 19 Dec 2017 05:41:03 +0000 (21:41 -0800)
committerGuy Harris <[email protected]>
Tue, 19 Dec 2017 05:41:18 +0000 (21:41 -0800)
commit58f2aa4b57a2a1c15ce7e890201cce009b476ee7
tree3b11910e10827168de034e36dc35a6fb832f2bb2
parentc45936d9f19f9fc23b783e65f3e5aee51019f2c9
Use nd_ types, clean up ICMPv6 dissection.

Use nd_ types for various packet structures, and use EXTRACT_ macros as
necessary.  Get rid of & in EXTRACT_ macros if not necessary.

The 1-byte pad RPL suboption is called PAD1, not PAD0, in the RFC.

Rename rpl_dio_printopt() to rpl_printopts() because 1) it's for all RPL
messages and 2) it prints multiple options.  Clean up its processing
loop.

Pass rpl_print() the ICMPv6 code, not a pointer to the full header; all
it needs is the code.

Use %u to print unsigned values.

In Node Information node address lists, the TTL comes before the
address, as per the RFC.  Dissect it that way.
netdissect.h
print-icmp.c
print-icmp6.c
tests/rpl-19-pickdag.out
tests/rpl-19-pickdagvvv.out