You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DHCPv6: Don't limit the hex dumps to 10 characters with -vv or more
Change the type of optlen from uint16_t to u_int to avoid:
./print-dhcp6.c: In function 'dhcp6opt_print':
./print-dhcp6.c:698:31: warning: comparison of integer expressions of
different signedness: 'u_int' {aka 'unsigned int'} and 'int'
[-Wsign-compare]
698 | if (i < optlen - 4)
| ^
./print-dhcp6.c:752:31: warning: comparison of integer expressions of
different signedness: 'u_int' {aka 'unsigned int'} and 'int'
[-Wsign-compare]
752 | if (i < optlen - 16)
| ^
Add a test with -vv option, from an existing pcap.
Update a test output accordingly.
1 23:25:55.136477 IP6 (hlim 64, next-header UDP (17) payload length: 595) fc00:502:411:1::1.546 > fc00:502:400:0:10:32:0:69.547: [udp sum ok] dhcp6 relay-fwd (linkaddr=fc00:502:411:1::1 peeraddr=fc00:502:411:1::1 (interface-ID 54d46ffa109a) (vendor-specific-info enterprise 4491 (code 38 len 4 data 01020300)) (code 39 len 6 data 54d46ffa109a))) (relay-message (dhcp6 request (xid=d98c5d (reconfigure-accept) (vendor-class) (option-request vendor-specific-info) (vendor-specific-info enterprise 4491 (code 1 len 16 data 00200021002200250026087a087b0027)) (code 2 len 3 data 45434d)) (code 3 len 12 data 45434d3a454d54413a455053)) (code 4 len 10 data 445247373930382d3533)) (code 5 len 3 data 312e30)) (code 6 len 26 data 647267373930382d5031352d31342d7633303272313231313161)) (code 7 len 5 data 322e332e31)) (code 8 len 6 data 353444343646)) (code 9 len 7 data 44524737393038)) (code 10 len 5 data 436973636f)) (code 35 len 122 data 057801010102010303010104010105010106010107010f0801100901000a01010b01180c01010d0200400e02000a0f010110040000000611010014010015013f1601011701011801041901041a01041b01201c01021d01081e01201f0110200110210102220101230100240100250101260200ff270101280100)) (code 36 len 6 data 54d46ffa109a))) (client-ID hwaddr type 1 54d46ffa109a) (server-ID hwaddr/time type 1 time 336091266 000c290f1c3b) (IA_NA IAID:1878659226 T1:0 T2:0 (IA_ADDR fc00:502:411:1::31 pltime:27000 vltime:43200) (vendor-specific-info enterprise 4491 (code 32 len 16 data fc000502040000000010003200000069)) (code 2170 len 16 data 000200040a200045000100040a200045)) (code 3 len 4 data 00000001)) (code 37 len 16 data fc000502040000000010003200000069)) (code 38 len 4 data 00000000)) (code 33 len 13 data 73616d706c65636d362e62696e)) (code 34 len 16 data fc000502040000000010003200000069)))) (elapsed-time 0))))
0 commit comments