]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-null.c
pcap_create_interface() needs the interface name on Linux.
[libpcap] / pcap-null.c
index 934fb2cc061c7704b6cffa08086c2ce45fefa7b3..b5fa3ab91fabfc576a22796e402ab9728ecd6d8b 100644 (file)
@@ -36,7 +36,7 @@
 static char nosup[] = "live packet capture not supported on this system";
 
 pcap_t *
-pcap_create_interface(const char *device, char *ebuf)
+pcap_create_interface(const char *device _U_, char *ebuf)
 {
        (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
        return (NULL);
@@ -45,5 +45,9 @@ pcap_create_interface(const char *device, char *ebuf)
 int
 pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
 {
+       /*
+        * There are no interfaces on which we can capture.
+        */
+       *alldevsp = NULL;
        return (0);
 }