From: Marcel Holtmann Date: Mon, 15 Dec 2008 08:20:04 +0000 (+0100) Subject: Use IFF_LOWER_UP instead of IFF_RUNNING for link detection X-Git-Tag: 0.4~2 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=3dd560cb2721d764f21de74f208209c64e855c55;p=connman Use IFF_LOWER_UP instead of IFF_RUNNING for link detection --- diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 28c1742..832d636 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -62,12 +62,12 @@ static void ethernet_newlink(unsigned short type, int index, if (ethernet->index != index) continue; - if ((ethernet->flags & IFF_RUNNING) == (flags & IFF_RUNNING)) + if ((ethernet->flags & IFF_LOWER_UP) == (flags & IFF_LOWER_UP)) continue; ethernet->flags = flags; - if (ethernet->flags & IFF_RUNNING) { + if (ethernet->flags & IFF_LOWER_UP) { DBG("carrier on"); netdev = connman_element_create(NULL);