From: Roy Marples Date: Wed, 26 Nov 2014 11:25:39 +0000 (+0000) Subject: Enter reboot state with a fake lease. X-Git-Tag: v6.6.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=618025f8e362ccc4c2408f669f9dc7bd64292c9e;p=thirdparty%2Fdhcpcd.git Enter reboot state with a fake lease. --- diff --git a/dhcp.c b/dhcp.c index cd44eb49..460e7e5e 100644 --- a/dhcp.c +++ b/dhcp.c @@ -3190,7 +3190,8 @@ dhcp_start1(void *arg) if (state->offer == NULL || state->offer->cookie == 0) { /* If we don't have an address yet, enter the reboot * state to ensure at least fallback in short order. */ - if (state->addr.s_addr == INADDR_ANY) + if (state->addr.s_addr == INADDR_ANY || + state->added & STATE_FAKE) state->state = DHS_REBOOT; dhcp_discover(ifp); } else