]> The Tcpdump Group git mirrors - libpcap/commitdiff
It's pcap_lookupnet(), not pcap_lookupdev(), that we need on Windows.
authorGuy Harris <[email protected]>
Fri, 8 Sep 2017 02:27:45 +0000 (19:27 -0700)
committerGuy Harris <[email protected]>
Fri, 8 Sep 2017 02:27:45 +0000 (19:27 -0700)
pcap-null.c

index e53f196a5cfe707ef11e502e7449f108234452e9..e60cdd0fb34ca085c6a72a2038200d52e6dcd966 100644 (file)
@@ -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