summaryrefslogtreecommitdiff
path: root/src/detect.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-03-26 17:24:07 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-03-26 17:24:07 -0700
commitbcb6370dc73d25c43692691c42bfd8d12e72074d (patch)
tree3b8db85357169635c0d3d611a2ee92f08d02990d /src/detect.c
parentdf13a0c65a8893f443d3684177ad8e8e5e73c190 (diff)
downloadconnman-bcb6370dc73d25c43692691c42bfd8d12e72074d.tar.gz
connman-bcb6370dc73d25c43692691c42bfd8d12e72074d.tar.bz2
connman-bcb6370dc73d25c43692691c42bfd8d12e72074d.zip
Ignore VMware network devices
Diffstat (limited to 'src/detect.c')
-rw-r--r--src/detect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/detect.c b/src/detect.c
index 1415638b..3a97816c 100644
--- a/src/detect.c
+++ b/src/detect.c
@@ -207,6 +207,8 @@ static void detect_newlink(unsigned short type, int index,
devtype = CONNMAN_DEVICE_TYPE_UNKNOWN;
else if (g_str_has_prefix(devname, "wmx") == TRUE)
devtype = CONNMAN_DEVICE_TYPE_UNKNOWN;
+ else if (g_str_has_prefix(devname, "vmnet") == 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))