]> git.ipfire.org Git - thirdparty/openwrt.git/commit
odhcp6c: use the global DHCP DUID for DHCPv6 20359/head
authorDavid Härdeman <david@hardeman.nu>
Fri, 10 Oct 2025 09:43:11 +0000 (11:43 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 19 Oct 2025 17:46:22 +0000 (19:46 +0200)
commit7dee632beedbee923c0f993d8e332a8bb3677cc8
treedc2ce33c0cb7c46676a3869fb27f1f4d548b10fc
parent9151c7015ed2116b92a82b27c122310f1a91a426
odhcp6c: use the global DHCP DUID for DHCPv6

odhcp6c already supports custom DUIDS on a per-interface basis.  When no client
identifier has been set, odhcp6c will generate one on the basis of the MAC
address of the given interface.

This is contrary to how DUIDs are meant to be used, as the client identifier
will vary from interface to interface, while it is meant to remain stable for a
given host, no matter how the network hardware changes (see RFC8415, §11).

Fix this by letting odhcp6c use the global DHCP DUID, if configured.

Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/openwrt/pull/20359
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/ipv6/odhcp6c/files/dhcpv6.sh