]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
When rebooting, directly call send_request to preserve state.
authorRoy Marples <roy@marples.name>
Tue, 6 May 2014 12:42:39 +0000 (12:42 +0000)
committerRoy Marples <roy@marples.name>
Tue, 6 May 2014 12:42:39 +0000 (12:42 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 272e926b5e0771e3a5af1fbd292768c73dfd2442..b3b811a35991fb79f2de3351ee5067cf46c7e4a5 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2072,8 +2072,10 @@ dhcp_reboot(struct interface *ifp)
        /* Don't bother ARP checking as the server could NAK us first. */
        if (ifo->options & DHCPCD_INFORM)
                dhcp_inform(ifp);
-       else
-               dhcp_request(ifp);
+       else {
+               /* Don't call dhcp_request as that would change the state */
+               send_request(ifp);
+       }
 }
 
 void