summaryrefslogtreecommitdiff
path: root/pcap-null.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-02-12 07:04:44 +0000
committerXin LI <delphij@FreeBSD.org>2017-02-12 07:04:44 +0000
commitc8c6d70e300aa9261c4766502c179fc4cd2b22a0 (patch)
tree14c068bb8b49db9f9ae540e8e2be80a9035e403a /pcap-null.c
parent50224b10fa4e157f09ee1cd03c790c9e61e76c5e (diff)
Diffstat (limited to 'pcap-null.c')
-rw-r--r--pcap-null.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pcap-null.c b/pcap-null.c
index 934fb2cc061c..b5fa3ab91fab 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -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);
}