diff options
| author | Luka Perkov | 2016-05-10 22:36:10 +0000 |
|---|---|---|
| committer | Luka Perkov | 2016-05-10 22:36:10 +0000 |
| commit | 0cdf88a8daa34e4d62c5bafdacbdd89388963a30 (patch) | |
| tree | 394d05ffe74627bcd0d82d0f6187817a6513bafb | |
| parent | d6dfd195d0c3b0732434d98da09574bf643878e2 (diff) | |
| download | openwrt-0cdf88a8daa34e4d62c5bafdacbdd89388963a30.tar.gz | |
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>
SVN-Revision: 49321
| -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} \ |