dhcpv4: use iovec for message and serverid
authorDavid Härdeman <[email protected]>
Mon, 6 Oct 2025 09:39:20 +0000 (11:39 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 21 Oct 2025 17:04:58 +0000 (19:04 +0200)
commit87fee619205de53fed1fd324ad015deec9f97372
treed838f5c53eedcfb7e91a8b3d44acdee8a166c1fa
parent2f97bf0b56ded909d23c7fff33e50992bb97505a
dhcpv4: use iovec for message and serverid

Start converting options over to an iovec based solution.

Also change the name of "type" in struct dhcpv4_option, both the DHCPv4 and
DHCPv6 RFCs call these "option codes", not types.

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
src/dhcpv4.h