From: Roy Marples Date: Wed, 15 Jan 2020 15:47:45 +0000 (+0000) Subject: dhcpcd: carrier up does not mean interface is up X-Git-Tag: v9.0.0~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94226d3c06d23ceedaabd7cbef586ceb6e7022e;p=thirdparty%2Fdhcpcd.git dhcpcd: carrier up does not mean interface is up And we really want it up here. --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index d15db87e..6e00d5df 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -935,7 +935,7 @@ dhcpcd_prestartinterface(void *arg) if ((!(ifp->ctx->options & DHCPCD_MASTER) || ifp->options->options & DHCPCD_IF_UP) && - ifp->carrier != LINK_UP) + !(ifp->flags & IFF_UP)) { if (ifp->options->options & DHCPCD_ANONYMOUS && if_randomisemac(ifp) == -1)