mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 20:14:12 +08:00
58f2aa4b57
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.
2 lines
304 B
Plaintext
2 lines
304 B
Plaintext
IP6 (hlim 64, next-header ICMPv6 (58) payload length: 56) fe80::216:3eff:fe11:3424 > fe80::216:3eff:fe11:3424: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:5431::,seq:10,instance:42,Dagid,40] opt:rpltarget len:25 opt:pad1 opt:pad1 opt:pad1 opt:pad1 opt:pad1 opt:pad1 opt:pad1
|