summaryrefslogtreecommitdiff
path: root/pcap-snit.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-30 11:19:57 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-30 11:20:21 -0700
commitcc3ca65d6519faf3a0e4609b5150757c14af36e9 (patch)
tree757d1dca542b1704309aec9823693b5f44387510 /pcap-snit.c
parentf9e8924f56bcd908cf1c0a1731286b1451716ba5 (diff)
downloadlibpcap-cc3ca65d6519faf3a0e4609b5150757c14af36e9.tar.gz
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.
Diffstat (limited to 'pcap-snit.c')
-rw-r--r--pcap-snit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-snit.c b/pcap-snit.c
index ae8dd8bd..7db2fd9a 100644
--- a/pcap-snit.c
+++ b/pcap-snit.c
@@ -431,7 +431,7 @@ pcap_activate_snit(pcap_t *p)
}
pcap_t *
-pcap_create_interface(char *ebuf)
+pcap_create_interface(const char *device _U_, char *ebuf)
{
pcap_t *p;