diff options
author | Luka Perkov <luka@openwrt.org> | 2016-05-10 22:36:10 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:26:47 +0200 |
commit | bb1778b7203302921b4868ba3907ba780ba1212d (patch) | |
tree | f3a63849bc0b353d92448d95ce48cc1e53393cf6 /package/network | |
parent | 691f44e0ddcf770a1b0998c90e5e9326f9b9108d (diff) | |
download | master-187ad058-bb1778b7203302921b4868ba3907ba780ba1212d.tar.gz master-187ad058-bb1778b7203302921b4868ba3907ba780ba1212d.tar.bz2 master-187ad058-bb1778b7203302921b4868ba3907ba780ba1212d.zip |
netifd: Send DHCP release when client exits
Let DHCP client send a release when it exists so the DHCP server is
informed the IP address is released and allowing to clean up IP/mac
state info in intermediate devices.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49321 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh index 0e88af9e96..546e1d661a 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -52,7 +52,7 @@ proto_dhcp_setup() { proto_run_command "$config" udhcpc \ -p /var/run/udhcpc-$iface.pid \ -s /lib/netifd/dhcp.script \ - -f -t 0 -i "$iface" \ + -f -R -t 0 -i "$iface" \ ${ipaddr:+-r $ipaddr} \ ${hostname:+-H $hostname} \ ${vendorid:+-V $vendorid} \ |