From 72dcec2dde31b94121edde7f491d8eb69786f3f6 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 5 Nov 2006 02:41:48 +0000 Subject: [PATCH] only return loopback and ethernet types in net_interface_list --- src/os/win32/win32_sigar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 174f17d0..bd329260 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -2295,9 +2295,12 @@ sigar_net_interface_list_get(sigar_t *sigar, else if (ifr->dwType == MIB_IF_TYPE_LOOPBACK) { sprintf(name, "lo%d", lo++); } - else { + else if (ifr->dwType == MIB_IF_TYPE_ETHERNET) { sprintf(name, "eth%d", eth++); } + else { + continue; /*XXX*/ + } if (iflist) { iflist->data[iflist->number++] = strdup(name);