rtnl: Use filtered devices to determine blacklisted devices
authorManfred Kober <manfred.kober@gmx.de>
Thu, 21 Jun 2012 07:40:33 +0000 (09:40 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 25 Jun 2012 06:33:36 +0000 (09:33 +0300)
Instead of hard-coding some selected devices to be ignored, the
blacklist check now uses the connman_device_isfiltered list.

src/rtnl.c

index 4f50219..a6ff84b 100644 (file)
@@ -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;