aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-01-10 20:05:35 -0800
committerGuy Harris <guy@alum.mit.edu>2014-01-10 20:05:35 -0800
commit893004ce0538b35ef0d4a0a844983c59e9ac35cf (patch)
tree22d4183f9d391e5b70fba9156b73b1dba24f68fb /pcap-linux.c
parent0bb3f4d8ee0210e012c58b4ea7dc2fe5c06a73fa (diff)
Another check for IFF_UP removed.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 4b4c1ab5..351d3ec0 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -2116,8 +2116,7 @@ scan_sys_class_net(pcap_if_t **devlistp, char *errbuf)
*q = '\0';
/*
- * Get the flags for this interface, and skip it if
- * it's not up.
+ * Get the flags for this interface.
*/
strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name));
if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
@@ -2131,8 +2130,6 @@ scan_sys_class_net(pcap_if_t **devlistp, char *errbuf)
ret = -1;
break;
}
- if (!(ifrflags.ifr_flags & IFF_UP))
- continue;
/*
* Add an entry for this interface, with no addresses.