From: Samuel Ortiz Date: Fri, 8 Jul 2011 16:34:15 +0000 (+0200) Subject: device: Ignore dummy networking devices X-Git-Tag: 0.76~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb53c7f9d140dd6270b4d72b61990579cb2f7153;p=platform%2Fupstream%2Fconnman.git 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. --- diff --git a/src/device.c b/src/device.c index cb0e4ca..9008269 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;