From 3dd560cb2721d764f21de74f208209c64e855c55 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 15 Dec 2008 09:20:04 +0100 Subject: [PATCH] Use IFF_LOWER_UP instead of IFF_RUNNING for link detection --- plugins/ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.9.5