netifd: don't send a default client identifier in DHCP requests if no clientid uci option is given (#12426)
SVN-Revision: 34089
This commit is contained in:
parent
e92da5e7ae
commit
611b2e8bb3
1 changed files with 2 additions and 2 deletions
|
@ -27,6 +27,7 @@ proto_dhcp_setup() {
|
||||||
done
|
done
|
||||||
|
|
||||||
[ "$broadcast" = 1 ] && broadcast="-B" || broadcast=
|
[ "$broadcast" = 1 ] && broadcast="-B" || broadcast=
|
||||||
|
[ -n "$clientid" ] && clientid="-x 0x3d:${clientid//:/}" || clientid="-C"
|
||||||
|
|
||||||
proto_export "INTERFACE=$config"
|
proto_export "INTERFACE=$config"
|
||||||
proto_run_command "$config" udhcpc \
|
proto_run_command "$config" udhcpc \
|
||||||
|
@ -35,9 +36,8 @@ proto_dhcp_setup() {
|
||||||
-f -t 0 -i "$iface" \
|
-f -t 0 -i "$iface" \
|
||||||
${ipaddr:+-r $ipaddr} \
|
${ipaddr:+-r $ipaddr} \
|
||||||
${hostname:+-H $hostname} \
|
${hostname:+-H $hostname} \
|
||||||
${clientid:+-x 0x3d:${clientid//:/}} \
|
|
||||||
${vendorid:+-V $vendorid} \
|
${vendorid:+-V $vendorid} \
|
||||||
$broadcast $dhcpopts
|
$clientid $broadcast $dhcpopts
|
||||||
}
|
}
|
||||||
|
|
||||||
proto_dhcp_teardown() {
|
proto_dhcp_teardown() {
|
||||||
|
|
Loading…
Reference in a new issue