diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-15 09:20:04 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-15 09:20:04 +0100 |
commit | 3dd560cb2721d764f21de74f208209c64e855c55 (patch) | |
tree | 8d2b3a6ac3e46b64c99829f04ccbe2bee1262abe /plugins/ethernet.c | |
parent | 6fc25870e4cb00374c96ce31f012fe188475f4aa (diff) | |
download | connman-3dd560cb2721d764f21de74f208209c64e855c55.tar.gz connman-3dd560cb2721d764f21de74f208209c64e855c55.tar.bz2 connman-3dd560cb2721d764f21de74f208209c64e855c55.zip |
Use IFF_LOWER_UP instead of IFF_RUNNING for link detection
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r-- | plugins/ethernet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 28c1742d..832d636f 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); |