diff options
Diffstat (limited to 'contrib/libpcap/fad-gifc.c')
-rw-r--r-- | contrib/libpcap/fad-gifc.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/contrib/libpcap/fad-gifc.c b/contrib/libpcap/fad-gifc.c index d0a2e99..d453518 100644 --- a/contrib/libpcap/fad-gifc.c +++ b/contrib/libpcap/fad-gifc.c @@ -133,10 +133,11 @@ struct rtentry; /* declarations in <net/if.h> */ * * XXX - or platforms that have other, better mechanisms but for which * we don't yet have code to use that mechanism; I think there's a better - * way on Linux, for example. + * way on Linux, for example, but if that better way is "getifaddrs()", + * we already have that. */ int -pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) +pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) { pcap_if_t *devlist = NULL; register int fd; @@ -409,15 +410,6 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) free(buf); (void)close(fd); - 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. |