openwrt-pf/package/network/ipv6
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
..
6in4 6in4: improve HE tunnel update procedure 2026-02-15 00:01:57 +01:00
6rd 6rd: add CPPFLAGS 2026-02-17 22:16:58 +01:00
6to4
464xlat 464xlat: add CPPFLAGS 2026-02-17 22:16:58 +01:00
ds-lite
map treewide: edit local CMakeLists.txt to be compatible with cmake 4.x 2025-11-04 15:14:53 +01:00
odhcp6c scripts: dhcp/dhcpv6: handling of invalid client ID values 2026-06-11 10:40:57 +02:00
thc-ipv6