changeset 2474:f27dd8bf4885 draft

When rebooting, directly call send_request to preserve state.
author Roy Marples <roy@marples.name>
date Tue, 06 May 2014 12:42:39 +0000
parents 3a21f982379d
children 023d080fb9aa
files dhcp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp.c	Mon May 05 21:21:31 2014 +0000
+++ b/dhcp.c	Tue May 06 12:42:39 2014 +0000
@@ -2072,8 +2072,10 @@
 	/* 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