dhcpv4: use iovec for NTP
authorDavid Härdeman <[email protected]>
Mon, 6 Oct 2025 10:23:18 +0000 (12:23 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 21 Oct 2025 17:05:02 +0000 (19:05 +0200)
commit6329e37d595d6fd6b2c40951ca6774a702c250d8
treec22a9098a19e82a74f477acf230edf9d0b76d133
parent87fee619205de53fed1fd324ad015deec9f97372
dhcpv4: use iovec for NTP

Note that the previous code would send out several NTP options if
the client requested the option more than once, and would also send
out zero-sized options (against RFC2132, §8.3).

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