From af6de21147d970e9d34fd1e4176bee96e7b1c6b4 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 26 Mar 2009 09:10:17 +0100 Subject: [PATCH] Ignore VirtualBox network devices --- src/detect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detect.c b/src/detect.c index 3a97816..b096318 100644 --- a/src/detect.c +++ b/src/detect.c @@ -209,6 +209,8 @@ static void detect_newlink(unsigned short type, int index, devtype = CONNMAN_DEVICE_TYPE_UNKNOWN; else if (g_str_has_prefix(devname, "vmnet") == TRUE) devtype = CONNMAN_DEVICE_TYPE_UNKNOWN; + else if (g_str_has_prefix(devname, "vboxnet") == TRUE) + devtype = CONNMAN_DEVICE_TYPE_UNKNOWN; else if (stat(bridge_path, &st) == 0 && (st.st_mode & S_IFDIR)) devtype = CONNMAN_DEVICE_TYPE_UNKNOWN; else if (stat(wimax_path, &st) == 0 && (st.st_mode & S_IFDIR)) -- 2.7.4