From: Roy Marples Date: Tue, 4 Jul 2017 11:22:56 +0000 (+0100) Subject: Only start discovery on lease expiration if we have a carrier. X-Git-Tag: v7.0.0-rc2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6da6355dd2746ea73df57955c14d072963067a5;p=thirdparty%2Fdhcpcd.git Only start discovery on lease expiration if we have a carrier. --- diff --git a/src/dhcp.c b/src/dhcp.c index be3d354a..5b808799 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -1915,7 +1915,8 @@ dhcp_expire1(struct interface *ifp) dhcp_drop(ifp, "EXPIRE"); unlink(state->leasefile); state->interval = 0; - dhcp_discover(ifp); + if (!(ifp->options->options & DHCPCD_LINK) || ifp->carrier != LINK_DOWN) + dhcp_discover(ifp); } static void