From: Marcel Holtmann Date: Thu, 26 Mar 2009 08:10:17 +0000 (+0100) Subject: Ignore VirtualBox network devices X-Git-Tag: 0.16~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af6de21147d970e9d34fd1e4176bee96e7b1c6b4;p=platform%2Fupstream%2Fconnman.git Ignore VirtualBox network devices --- 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))