]> git.ipfire.org Git - thirdparty/openwrt.git/commit
netifd: dhcp: suppress udhcpc default vendor class if specified in sendopts 21450/head
authorJINLIANG GU <ihipop@gmail.com>
Sat, 10 Jan 2026 01:45:58 +0000 (09:45 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 10 Jan 2026 12:00:15 +0000 (13:00 +0100)
commit89d982d723f027a5650d9e55726c87a1ba46b4dd
tree1ebde4997d0af094df8bf2b1a43bf1c47c6db678
parent93e98b4082e0f885a078c79135f76a2345452eb5
netifd: dhcp: suppress udhcpc default vendor class if specified in sendopts

When DHCP Option 60 is specified via sendopts (hex, decimal, or named
formats), udhcpc sends its default "udhcp <version>" string alongside
the custom value, which causes authentication failures with some ISPs.

This fix detects Option 60 in sendopts and automatically passes -V ""
to udhcpc to suppress the default version string while allowing
multiple user-defined vendor classes.

Supported formats:
- Hexadecimal: 0x3c
- Decimal: 60
- Named: vendor

Fixes: #21242
Signed-off-by: JINLIANG GU <ihipop@gmail.com>
https://github.com/openwrt/openwrt/pull/21450
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
package/network/config/netifd/Makefile
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh