]> 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)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 23 Mar 2025 09:04:36 +0000 (10:04 +0100)
commit0f15ed5545b143ced64cc1a99abbd5c1cbdfd729
tree752a46635b4f4ab5ddfe3118ef6a9060f7ee749b
parent7cd128c6906d3315502b0fb49f7fd0452a0ef85e
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.

(cherry picked from commit a4508ee9abc27eb8e08191a206fb57edd8996273)
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]