mirror of
https://github.com/openwrt/openwrt.git
synced 2026-07-20 16:11:59 +04:00
8c613a9a22
The DUID-UUID was generated from a random UUID, which is regenerated on every fresh flash and therefore does not survive reconfiguration events such as reflashing without keeping the configuration. RFC8415/RFC6355 prefer a DUID that remains stable across such events. Add a ucode helper that picks the first LAN port (falling back to WAN) from /etc/board.json, resolves its MAC address and derives a stable UUID from it, falling back to a random UUID only when that fails. Signed-off-by: Felix Fietkau <nbd@nbd.name>