diff options
author | Manfred Kober <manfred.kober@gmx.de> | 2012-06-21 09:40:33 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-06-25 09:33:36 +0300 |
commit | 7c1ddffb3a7c840f63ac969be5b294971d5c7327 (patch) | |
tree | 7798c81b5c015132de4ab156aef5e7891880a034 /src | |
parent | 94647cff574377932b17e415d394812c3159884f (diff) | |
download | connman-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.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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; |