diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-07-08 18:34:15 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-07-08 19:08:41 +0200 |
commit | cb53c7f9d140dd6270b4d72b61990579cb2f7153 (patch) | |
tree | 516974ce4ba003afcd442656c6236a8c812dd39d | |
parent | e7f490373c11e78965c2d748122e1e06e19b41da (diff) | |
download | connman-cb53c7f9d140dd6270b4d72b61990579cb2f7153.tar.gz connman-cb53c7f9d140dd6270b4d72b61990579cb2f7153.tar.bz2 connman-cb53c7f9d140dd6270b4d72b61990579cb2f7153.zip |
device: Ignore dummy networking devices
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.
-rw-r--r-- | src/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index cb0e4cad..90082694 100644 --- a/src/device.c +++ b/src/device.c @@ -1399,6 +1399,11 @@ connman_bool_t __connman_device_isfiltered(const char *devname) } nodevice: + if (g_pattern_match_simple("dummy*", devname) == TRUE) { + DBG("ignoring dummy networking devices"); + return TRUE; + } + if (nodevice_filter == NULL) return FALSE; |