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-int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap-int.h') diff --git a/pcap-int.h b/pcap-int.h index d88331df..c5a030f5 100644 --- a/pcap-int.h +++ b/pcap-int.h @@ -446,7 +446,7 @@ int pcap_setnonblock_fd(pcap_t *p, int, char *); * "pcap_create_common()" allocates and fills in a pcap_t, for use * by pcap_create routines. */ -pcap_t *pcap_create_interface(char *); +pcap_t *pcap_create_interface(const char *, char *); pcap_t *pcap_create_common(char *, size_t); int pcap_do_addexit(pcap_t *); void pcap_add_to_pcaps_to_close(pcap_t *); -- cgit v1.2.3