diff options
Diffstat (limited to 'contrib/libpcap/fad-getad.c')
-rw-r--r-- | contrib/libpcap/fad-getad.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/contrib/libpcap/fad-getad.c b/contrib/libpcap/fad-getad.c index 742ae1f..f4d5869 100644 --- a/contrib/libpcap/fad-getad.c +++ b/contrib/libpcap/fad-getad.c @@ -141,11 +141,9 @@ get_sa_len(struct sockaddr *addr) * Returns -1 on error, 0 otherwise. * The list, as returned through "alldevsp", may be null if no interfaces * were up and could be opened. - * - * This is the implementation used on platforms that have "getifaddrs()". */ int -pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) +pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) { pcap_if_t *devlist = NULL; struct ifaddrs *ifap, *ifa; @@ -273,15 +271,6 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) freeifaddrs(ifap); - if (ret != -1) { - /* - * We haven't had any errors yet; do any platform-specific - * operations to add devices. - */ - if (pcap_platform_finddevs(&devlist, errbuf) < 0) - ret = -1; - } - if (ret == -1) { /* * We had an error; free the list we've been constructing. |