summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-07-08 18:34:15 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-08 19:08:41 +0200
commitcb53c7f9d140dd6270b4d72b61990579cb2f7153 (patch)
tree516974ce4ba003afcd442656c6236a8c812dd39d
parente7f490373c11e78965c2d748122e1e06e19b41da (diff)
downloadconnman-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.c5
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;