summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManfred Kober <manfred.kober@gmx.de>2012-06-21 09:40:33 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-25 09:33:36 +0300
commit7c1ddffb3a7c840f63ac969be5b294971d5c7327 (patch)
tree7798c81b5c015132de4ab156aef5e7891880a034 /src
parent94647cff574377932b17e415d394812c3159884f (diff)
downloadconnman-7c1ddffb3a7c840f63ac969be5b294971d5c7327.tar.gz
connman-7c1ddffb3a7c840f63ac969be5b294971d5c7327.tar.bz2
connman-7c1ddffb3a7c840f63ac969be5b294971d5c7327.zip
rtnl: Use filtered devices to determine blacklisted devices
Instead of hard-coding some selected devices to be ignored, the blacklist check now uses the connman_device_isfiltered list.
Diffstat (limited to 'src')
-rw-r--r--src/rtnl.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index 4f502195..a6ff84b0 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -90,16 +90,7 @@ static connman_bool_t ether_blacklisted(const char *name)
if (name == NULL)
return TRUE;
- /* virtual interface from VMware */
- if (g_str_has_prefix(name, "vmnet") == TRUE)
- return TRUE;
-
- /* virtual interface from VirtualBox */
- if (g_str_has_prefix(name, "vboxnet") == TRUE)
- return TRUE;
-
- /* virtual interface from Virtual Machine Manager */
- if (g_str_has_prefix(name, "virbr") == TRUE)
+ if (__connman_device_isfiltered(name) == TRUE)
return TRUE;
return FALSE;