changeset 4959:1b7325caa3ce draft

dhcpcd: carrier up does not mean interface is up And we really want it up here.
author Roy Marples <roy@marples.name>
date Wed, 15 Jan 2020 15:47:45 +0000
parents a120f447fe74
children cf298b786d8c
files src/dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcpcd.c	Wed Jan 15 14:28:24 2020 +0000
+++ b/src/dhcpcd.c	Wed Jan 15 15:47:45 2020 +0000
@@ -935,7 +935,7 @@
 
 	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)