dhcpv4: fix padding of iovec message in dhcpv4_handle_msg()
authorDavid Härdeman <[email protected]>
Mon, 6 Oct 2025 17:17:10 +0000 (19:17 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 21 Oct 2025 17:05:32 +0000 (19:05 +0200)
commitbf41f4edfbe30bc3d716aa80bd3370ad1129ce0a
tree0f0e58627dc518174ae58bf716e1ff5f3bcbaa5d
parentbe68f423c528233111dfec13456c46077ee489fb
dhcpv4: fix padding of iovec message in dhcpv4_handle_msg()

Fix the FIXME added earlier by calculating the length of the iovec package and
adding padding as necessary to comply with the BOOTP specification (which
defines the minimum length of a message as 300 bytes).

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/278
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c