Ignore VirtualBox network devices
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Mar 2009 08:10:17 +0000 (09:10 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Mar 2009 08:10:17 +0000 (09:10 +0100)
src/detect.c

index 3a97816..b096318 100644 (file)
@@ -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))