openwrt-pf/package/network/config
Shine 9ba54d2d9e scripts: dhcp/dhcpv6: handling of invalid client ID values
Verify and clean up client ID and global DUID config values before use, in
order to prevent DHCP client malfunction and loss of IPv4 and/or IPv6
connectivity.

- Accept common separators in the string (colon, dash, spaces/tabs, lf)
- Ignore invalid values (non-hex or odd-numbered length)
- Log a warning for invalid settings

The fall back mechanism is as follows:

If a (user-configured) network.<ifname>.clientid setting is found invalid,
ignore and fall back to using network.globals.dhcp_default_duid. In case
that's also invalid (e.g. has been tampered with), don't pass a client
ID to updhc/odhcpc. In that case, udhcpc/odhcpc will use their defaults,
which currently is the i/f MAC address resp. the i/f DUID-LL.

Only error handling is introduced, no behavior change for valid settings.

Signed-off-by: Shine <4c.fce2@proton.me>
Link: https://github.com/openwrt/openwrt/pull/23662
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-06-11 10:40:57 +02:00
..
firewall firewall: change synflood_protect option name 2026-01-24 21:33:15 +01:00
firewall4 firewall4: prefer over firewall as dependency 2026-03-10 00:47:21 +01:00
gre
ipip
ltq-adsl-app treewide: remove lantiq dot com URL 2026-01-02 18:07:02 +01:00
ltq-vdsl-vr9-app treewide: remove lantiq dot com URL 2026-01-02 18:07:02 +01:00
ltq-vdsl-vr11-app treewide: remove lantiq dot com URL 2026-01-02 18:07:02 +01:00
netifd scripts: dhcp/dhcpv6: handling of invalid client ID values 2026-06-11 10:40:57 +02:00
qos-scripts
qosify
soloscli treewide: switch to HTTPS URL 2026-01-02 18:07:02 +01:00
swconfig
vti
vxlan
wifi-scripts base-files: move config_generate to preinit 2026-06-05 20:53:18 +02:00
xfrm