diff options
-rw-r--r-- | fad-getad.c | 10 | ||||
-rw-r--r-- | fad-gifc.c | 5 | ||||
-rw-r--r-- | fad-glifc.c | 5 | ||||
-rw-r--r-- | pcap-linux.c | 5 |
4 files changed, 3 insertions, 22 deletions
diff --git a/fad-getad.c b/fad-getad.c index 69240d20..445c3662 100644 --- a/fad-getad.c +++ b/fad-getad.c @@ -174,16 +174,6 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) } for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) { /* - * Is this interface up? - */ - if (!(ifa->ifa_flags & IFF_UP)) { - /* - * No, so don't add it to the list. - */ - continue; - } - - /* * "ifa_addr" was apparently null on at least one * interface on some system. * @@ -237,8 +237,7 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) continue; /* - * Get the flags for this interface, and skip it if it's - * not up. + * Get the flags for this interface. */ strncpy(ifrflags.ifr_name, ifrp->ifr_name, sizeof(ifrflags.ifr_name)); @@ -253,8 +252,6 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) ret = -1; break; } - if (!(ifrflags.ifr_flags & IFF_UP)) - continue; /* * Get the netmask for this address on this interface. diff --git a/fad-glifc.c b/fad-glifc.c index 00eccb5a..1a820ad9 100644 --- a/fad-glifc.c +++ b/fad-glifc.c @@ -203,8 +203,7 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) #endif /* - * Get the flags for this interface, and skip it if it's - * not up. + * Get the flags for this interface. */ strncpy(ifrflags.lifr_name, ifrp->lifr_name, sizeof(ifrflags.lifr_name)); @@ -219,8 +218,6 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) ret = -1; break; } - if (!(ifrflags.lifr_flags & IFF_UP)) - continue; /* * Get the netmask for this address on this interface. diff --git a/pcap-linux.c b/pcap-linux.c index 08030cba..4b4c1ab5 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2263,8 +2263,7 @@ scan_proc_net_dev(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) { @@ -2278,8 +2277,6 @@ scan_proc_net_dev(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. |