]> git.ipfire.org Git - thirdparty/openwrt.git/commit
netifd: dhcp: suppress udhcpc default vendor class if specified in sendopts 21488/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 19:38:54 +0000 (20:38 +0100)
commit46e4aa32836cf8d3ec4741c067470862af19b073
tree75f508238ce5e799c58e714912e2013884696d8f
parent858bde06b5b93858347dfe98ec3c49c5df9f9957
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

(cherry picked from commit 89d982d723f027a5650d9e55726c87a1ba46b4dd)
Fixes: #21242
Signed-off-by: JINLIANG GU <ihipop@gmail.com>
Link: 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