aboutsummaryrefslogtreecommitdiffstats
path: root/fad-win32.c
diff options
context:
space:
mode:
authorguy <guy>2007-09-25 20:34:36 +0000
committerguy <guy>2007-09-25 20:34:36 +0000
commit231404ec647b238ba54f91135be6b8e29db092bb (patch)
treee38a82346cb16843d39edf191202da921788b688 /fad-win32.c
parent92aa745a42fbc592b7f034823e9830d7b65b1720 (diff)
Add pcap_platform_finddevs() to WinPcap.
Diffstat (limited to 'fad-win32.c')
-rw-r--r--fad-win32.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/fad-win32.c b/fad-win32.c
index 2c7b543..241a926 100644
--- a/fad-win32.c
+++ b/fad-win32.c
@@ -33,7 +33,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.14 2006-02-22 17:08:31 gianluca Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.15 2007-09-25 20:34:36 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -301,6 +301,15 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
name += strlen(name) + 1;
desc += strlen(desc) + 1;
}
+
+ 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) {
/*