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:
e7f4903
)
device: Ignore dummy networking devices
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 8 Jul 2011 16:34:15 +0000
(18:34 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 8 Jul 2011 17:08:41 +0000
(19:08 +0200)
When a kernel comes with dummy network devices support enabled, the
dummy interface will take the default route whenever a real interface
disconnects.
This is not what we want as the default route won't be released then.
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
cb0e4ca
..
9008269
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1399,6
+1399,11
@@
connman_bool_t __connman_device_isfiltered(const char *devname)
}
nodevice:
}
nodevice:
+ if (g_pattern_match_simple("dummy*", devname) == TRUE) {
+ DBG("ignoring dummy networking devices");
+ return TRUE;
+ }
+
if (nodevice_filter == NULL)
return FALSE;
if (nodevice_filter == NULL)
return FALSE;