Skip to content
Snippets Groups Projects
Commit 81a5f1ac authored by Hans Dedecker's avatar Hans Dedecker Committed by Jo-Philipp Wich
Browse files

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: default avatarHans Dedecker <dedeckeh@gmail.com>
parent 3df4eaf2
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ proto_dhcp_setup() { ...@@ -52,7 +52,7 @@ proto_dhcp_setup() {
proto_run_command "$config" udhcpc \ proto_run_command "$config" udhcpc \
-p /var/run/udhcpc-$iface.pid \ -p /var/run/udhcpc-$iface.pid \
-s /lib/netifd/dhcp.script \ -s /lib/netifd/dhcp.script \
-f -t 0 -i "$iface" \ -f -R -t 0 -i "$iface" \
${ipaddr:+-r $ipaddr} \ ${ipaddr:+-r $ipaddr} \
${hostname:+-H $hostname} \ ${hostname:+-H $hostname} \
${vendorid:+-V $vendorid} \ ${vendorid:+-V $vendorid} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment