openwrt-pf/package/network/ipv6
Shine d47ce71a89 scripts: dhcp: option to override preferred Client ID per interface
Using UUID-based client IDs for DHCPv4/DHCPv6 with no option of falling
back to hardware IDs (ie. MAC-address or DUID-LL) resp. none at all (IPv4),
is causing regressions in some setups.

Introduce a new setting to override the preferred client ID to be used for
DHCPv4/DHCPv6 on a per-interface basis:

network.<ifname>.sendclientid='auto|global|hardware|none'

- "auto" (default if empty or not present) uses any explicitly defined
  client ID, or falls back to the global DUID and finally to the DUID-LL
  resp. MAC address (ie. identical to before this commit).
- "global" uses the global default DUID, if configured, for DHCPv4 and
  DHCPv6 requests, even if a client ID is explicitly specified for the i/f
- "hardware" will not pass a client ID to udhcpc/odhcp6c, even if a global
  default DUID is configured or an explicit client ID specified, resulting
  in the i/f MAC address resp. type 3 DUID(-LL) to be used
- "none" (IPv4 only) will not add an option tag 61 to DHCPv4 requests at
  all.

Signed-off-by: Shine <4c.fce2@proton.me>
Link: https://github.com/openwrt/openwrt/pull/24107
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-07-11 17:30:55 +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: option to override preferred Client ID per interface 2026-07-11 17:30:55 +02:00
thc-ipv6 thc-ipv6: fix compilation with GCC 15 2026-06-27 11:48:27 +02:00