projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc2587
)
Use IFF_LOWER_UP instead of IFF_RUNNING for link detection
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 15 Dec 2008 08:20:04 +0000
(09:20 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 15 Dec 2008 08:20:04 +0000
(09:20 +0100)
plugins/ethernet.c
patch
|
blob
|
history
diff --git
a/plugins/ethernet.c
b/plugins/ethernet.c
index
28c1742
..
832d636
100644
(file)
--- 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);