odhcpd: support IAIDs for static DHCPv6 leases
authorDavid Härdeman <[email protected]>
Sat, 20 Sep 2025 16:19:06 +0000 (18:19 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 9 Oct 2025 06:58:23 +0000 (08:58 +0200)
commitcc3ec9c20c61904b8ebb41593d6814a0f54b6dc4
tree46e89c6cf2bca1583f1b4fc7515bd0014c38b877
parente42c627259428186716aa295c0506de71b751a3d
odhcpd: support IAIDs for static DHCPv6 leases

Extend the string format for duids to alternatively support
"<duid>%<iaid>", which makes it possible to define separate static
leases, e.g. for a client which is connected to the same network with
more than one interface (which will both have the same DUID, as it is a
per-host identifier, but different IAIDs).

Note that this only wires up the new format, actually using it to make
DHCPv6-IA decisions will be implemented in subsequent patches.

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