openwrt-pf/package
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
..
base-files base-files: derive DHCP DUID from device MAC address 2026-06-24 11:21:28 +02:00
boot uboot-airoha: update to v2026.07 2026-07-10 19:41:31 +02:00
devel package: binutils: deduplicate ld 2026-04-18 19:34:21 +02:00
firmware ixp4xx-microcode: use snprintf in IxNpeMicrocode.h 2026-07-07 09:10:02 +02:00
kernel gpio-button-hotplug: fix signed issue 2026-07-11 00:32:05 +02:00
libs udebug: update to Git HEAD (2026-07-08) 2026-07-08 16:10:54 +02:00
network scripts: dhcp: option to override preferred Client ID per interface 2026-07-11 17:30:55 +02:00
system ubus: update to Git HEAD (2026-06-28) 2026-06-28 16:48:20 +02:00
utils ucode: fix two compiler issues 2026-07-07 10:46:12 +02:00
Makefile build: add CycloneDX SBOM processing to apk 2026-05-17 12:21:09 +02:00