openwrt/package
David Härdeman a660a076db base-files: generate a global DHCP DUID
odhcp6c and odhcpd currently generate custom DUIDS on a per-interface basis
using 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).

The same problem exists in odhcpd, which also generates server-side DUIDs on a
per-interface basis.

In order to support a stable per-device DUID, generate one on first boot and
store it via uci.

Currently, a DUID-UUID style clientid is generated. This is mostly meant as an
RFC, and we might consider using a different kind of DUID instead (DUID-LLT,
DUID-EN).

One drawback is that this will typically change the DUID used on existing
OpenWrt devices when upgrading to a new release. However, that seems
unavoidable and is a one-time pain in order to have stable DUIDs (and in many
cases, it shouldn't cause any issues).

v2: move the uci cfg generation outside of an IPv6-only block since this
is relevant to the DHCPv4 client as well

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>
2025-10-19 19:46:22 +02:00
..
base-files base-files: generate a global DHCP DUID 2025-10-19 19:46:22 +02:00
boot rockchip: add FriendlyElec NanoPi R76S support 2025-10-16 21:39:16 +02:00
devel strace: update to 6.17 2025-10-15 11:16:08 +02:00
firmware ipq40xx: add support for Cisco Meraki MR30H 2025-10-19 19:33:18 +02:00
kernel leds.mk: fix leds-group-multicolor name 2025-10-19 19:39:39 +02:00
libs mbedtls: update to 3.6.5 2025-10-18 01:27:52 +02:00
network lldpd: bump to 1.0.20 2025-10-19 19:35:44 +02:00
system ubus: update to Git HEAD (2025-10-17) 2025-10-17 13:28:52 +02:00
utils ucode: fix EOF detection in the non-blocking read patch 2025-10-16 20:58:55 +02:00
Makefile package: do not sign individual APK packages 2025-10-09 12:52:43 +02:00