]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcpcd: carrier up does not mean interface is up
authorRoy Marples <roy@marples.name>
Wed, 15 Jan 2020 15:47:45 +0000 (15:47 +0000)
committerRoy Marples <roy@marples.name>
Wed, 15 Jan 2020 15:47:45 +0000 (15:47 +0000)
And we really want it up here.

src/dhcpcd.c

index d15db87e6461e52b9b91ecfbd7513998e7be5b99..6e00d5dfd3dafdd081e6f1c1ab8cb6d16516471d 100644 (file)
@@ -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)