odhcpd: support multiple per-client DUIDs
authorDavid Härdeman <[email protected]>
Fri, 1 Aug 2025 17:39:17 +0000 (19:39 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 9 Oct 2025 06:58:44 +0000 (08:58 +0200)
commit01e5e311b0db2ab80a179e217c2785964023be3c
tree35b478d9f5eddf1fb6f0c5a2c37904ced0af9eef
parentaebc647a6b7bff705a65087871a45b15effe4790
odhcpd: support multiple per-client DUIDs

This patch allows for multiple per-client DHCPv6 DUIDs. One use-case for
multiple DUIDs is dual-boot hosts, where e.g. Windows creates it's own DUID and
Linux (say, systemd-networkd) creates it's own DUID, and the two cannot be
synced in a simple manner. This also makes DUIDs similar to multiple per-host
MAC addresses (which is already supported by dnsmasq for DHCPv4 leases).

Note that the "old" behaviour is still kept, in other words, where a
simple DUID (as opposed to a "DUID%IAID") static association is defined,
the address will be given out on a first-come-first-serve basis.

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