Author: luka Date: 2016-05-11 00:36:10 +0200 (Wed, 11 May 2016) New Revision: 49321
Modified: trunk/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh Log: 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 <[email protected]> Modified: trunk/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh =================================================================== --- trunk/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh 2016-05-10 22:36:08 UTC (rev 49320) +++ trunk/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh 2016-05-10 22:36:10 UTC (rev 49321) @@ -52,7 +52,7 @@ 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} \ _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
