From: Roy Marples Date: Mon, 12 Sep 2016 16:02:40 +0000 (+0000) Subject: dhcpcd considers the link down without IFF_UP. X-Git-Tag: v6.11.4~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec32dc930aa6bc9e1d6b0367626a4a9991da0835;p=thirdparty%2Fdhcpcd.git dhcpcd considers the link down without IFF_UP. --- diff --git a/if-sun.c b/if-sun.c index 6d8e2b69..a26d4c6b 100644 --- a/if-sun.c +++ b/if-sun.c @@ -737,7 +737,7 @@ if_ifinfo(struct dhcpcd_ctx *ctx, const struct if_msghdr *ifm) if ((ifp = if_findindex(ctx->ifaces, ifm->ifm_index)) == NULL) return; - if (ifm->ifm_flags & IFF_OFFLINE) + if (ifm->ifm_flags & IFF_OFFLINE || !(ifm->ifm_flags & IFF_UP)) state = LINK_DOWN; else state = LINK_UP;