From cc3ca65d6519faf3a0e4609b5150757c14af36e9 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 30 Jun 2016 11:19:57 -0700 Subject: pcap_create_interface() needs the interface name on Linux. So pass it the interface name, and use the name passed to it rather than the name in the pcap_t - which hasn't yet been set at that point. --- pcap-null.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap-null.c') diff --git a/pcap-null.c b/pcap-null.c index af46b8c7..b5fa3ab9 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(char *ebuf) +pcap_create_interface(const char *device _U_, char *ebuf) { (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); return (NULL); -- cgit v1.2.3