From: Roy Marples Date: Tue, 6 May 2014 12:42:39 +0000 (+0000) Subject: When rebooting, directly call send_request to preserve state. X-Git-Tag: v6.4.0~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26ede0ceb89490903a988751ca7e47b84d793260;p=thirdparty%2Fdhcpcd.git When rebooting, directly call send_request to preserve state. --- diff --git a/dhcp.c b/dhcp.c index 272e926b..b3b811a3 100644 --- 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