aboutsummaryrefslogtreecommitdiff
path: root/pcap-null.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-07 19:27:45 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-07 19:27:45 -0700
commitf88ae6f64f754ee13cfc9f2f445df9722a267d73 (patch)
tree9baa3323feb26b3c0987d93d397f9a2c2586456e /pcap-null.c
parent2a23c3f8b7a427249122095342e246324e739b92 (diff)
It's pcap_lookupnet(), not pcap_lookupdev(), that we need on Windows.
Diffstat (limited to 'pcap-null.c')
-rw-r--r--pcap-null.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcap-null.c b/pcap-null.c
index e53f196a..e60cdd0f 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -46,11 +46,12 @@ pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
}
#ifdef _WIN32
-char *
-pcap_lookupdev(char *errbuf)
+int
+pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_,
+ bpf_u_int32 *maskp _U_, char *errbuf)
{
(void)strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE);
- return (NULL);
+ return (-1);
}
#endif