mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-22 08:42:25 +01:00
base-files: correct global DHCP DUID generation
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
The old command generates an often incorrect variable length UUID instead of a fixed 16-octet hex string. Ref: https://datatracker.ietf.org/doc/html/rfc8415#section-11.5 Signed-off-by: Alice H. <alice.hall0451+github@gmail.com>
This commit is contained in:
parent
412bc7e1d8
commit
010575c617
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
# DUID-UUID - RFC6355
|
||||
set network.globals.dhcp_default_duid="$(hexdump -vn 16 -e '"0004" 2/2 "%x"' /dev/urandom)"
|
||||
set network.globals.dhcp_default_duid="$(printf '%s%s' '0004' $(cat /proc/sys/kernel/random/uuid | sed -e 's/-//g'))"
|
||||
commit network
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue