]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcpcd considers the link down without IFF_UP.
authorRoy Marples <roy@marples.name>
Mon, 12 Sep 2016 16:02:40 +0000 (16:02 +0000)
committerRoy Marples <roy@marples.name>
Mon, 12 Sep 2016 16:02:40 +0000 (16:02 +0000)
if-sun.c

index 6d8e2b69f3e156713a22d730aa0bc938afd9e15b..a26d4c6bacdbdbf3ad4d7402bc98db62845ea05d 100644 (file)
--- 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;