summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-01-15 15:47:45 +0000
committerRoy Marples <roy@marples.name>2020-01-15 15:47:45 +0000
commit9da144a68a9477781efc22a097417bfa7f9494a9 (patch)
tree5779a8c64908d46ff52dd85f7213bc8c7193ce5e /src/dhcpcd.c
parent4dcd539c2259273ae89a364069378ca7327cd428 (diff)
downloaddhcpcd-9da144a68a9477781efc22a097417bfa7f9494a9.tar.xz
dhcpcd: carrier up does not mean interface is up
And we really want it up here.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
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)