]> The Tcpdump Group git mirrors - tcpdump/commit
DHCP: Fix printing IP address pairs options
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 22 Mar 2025 09:53:34 +0000 (10:53 +0100)
committerfxlb <[email protected]>
Sun, 23 Mar 2025 06:23:20 +0000 (06:23 +0000)
commita4508ee9abc27eb8e08191a206fb57edd8996273
treeea6819c513596928f65cc79b3d646901ff2b5649
parent60237c7f7e9b0ed63d80ebeb281e85d102f345c3
DHCP: Fix printing IP address pairs options

'p' is used by the options Policy Filter (21) and Static Route (33).
They have a minimum length of 8 and the length MUST be a multiple of 8.
Check that.

Add a test file for option 33 (lengths: 8, 16, 24, 3, 0), build with
scapy.
print-bootp.c
tests/TESTLIST
tests/dhcp-option-33.out [new file with mode: 0644]
tests/dhcp-option-33.pcap [new file with mode: 0644]