]> The Tcpdump Group git mirrors - tcpdump/commit
DHCP: Fix printing boolean options
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 20 Mar 2025 13:10:13 +0000 (14:10 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 20 Mar 2025 13:13:09 +0000 (14:13 +0100)
commit3230fc0be664705472916ace8fc83359ba9dd9b2
tree0888224f94f44d047c7071266bc2701c9dda45d6
parent5fa644d00e46dc09a088e995991077e0763c8ce5
DHCP: Fix printing boolean options

For 'B', the options 19, 20, 27, 29, 30, 31, 34, 36, 39 and 116 that
use it are only 1 octet "0/1" boolean. No need for a while loop.

Print an error message if the length is not 1.

(backported from commit 711571721fd3f13f1082e4e803c4066e1a51c540)
print-bootp.c