1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 18:17:32 +02:00

netifd: don't send a default client identifier in DHCP requests if no clientid uci option is given (#12426)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34089 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-11-05 19:28:24 +00:00
parent c35ed1c477
commit 0905cdc03e

View File

@ -27,6 +27,7 @@ proto_dhcp_setup() {
done
[ "$broadcast" = 1 ] && broadcast="-B" || broadcast=
[ -n "$clientid" ] && clientid="-x 0x3d:${clientid//:/}" || clientid="-C"
proto_export "INTERFACE=$config"
proto_run_command "$config" udhcpc \
@ -35,9 +36,8 @@ proto_dhcp_setup() {
-f -t 0 -i "$iface" \
${ipaddr:+-r $ipaddr} \
${hostname:+-H $hostname} \
${clientid:+-x 0x3d:${clientid//:/}} \
${vendorid:+-V $vendorid} \
$broadcast $dhcpopts
$clientid $broadcast $dhcpopts
}
proto_dhcp_teardown() {