Instead of hard-coding some selected devices to be ignored, the
blacklist check now uses the connman_device_isfiltered list.
---
 src/rtnl.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/src/rtnl.c b/src/rtnl.c
index 4f50219..a6ff84b 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;
-- 
1.7.4.1

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to