aboutsummaryrefslogtreecommitdiff
path: root/pcap-null.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-07 17:27:44 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-07 17:27:44 -0700
commitd2b3a7053dd966897f11a1c5120af195f414bc8b (patch)
tree3af5d634dcef9a8461effacf2251b9e6ba674213 /pcap-null.c
parentf8a5b5f5e4602fd5222d4ceef20833c9ff42e94b (diff)
Provide a no-op pcap_lookupdev() on Windows.
This allows compiling on Windows with no packet-capture mechanism.
Diffstat (limited to 'pcap-null.c')
-rw-r--r--pcap-null.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pcap-null.c b/pcap-null.c
index ec6d59eb..e53f196a 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -45,6 +45,15 @@ pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
return (0);
}
+#ifdef _WIN32
+char *
+pcap_lookupdev(char *errbuf)
+{
+ (void)strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE);
+ return (NULL);
+}
+#endif
+
#include "pcap_version.h"
/*