Changeset 34089


Ignore:
Timestamp:
2012-11-05T20:28:24+01:00 (5 years ago)
Author:
jow
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh

    r33826 r34089  
    2828 
    2929        [ "$broadcast" = 1 ] && broadcast="-B" || broadcast= 
     30        [ -n "$clientid" ] && clientid="-x 0x3d:${clientid//:/}" || clientid="-C" 
    3031 
    3132        proto_export "INTERFACE=$config" 
     
    3637                ${ipaddr:+-r $ipaddr} \ 
    3738                ${hostname:+-H $hostname} \ 
    38                 ${clientid:+-x 0x3d:${clientid//:/}} \ 
    3939                ${vendorid:+-V $vendorid} \ 
    40                 $broadcast $dhcpopts 
     40                $clientid $broadcast $dhcpopts 
    4141} 
    4242 
Note: See TracChangeset for help on using the changeset viewer.