diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-30 11:19:57 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-30 11:20:21 -0700 |
commit | cc3ca65d6519faf3a0e4609b5150757c14af36e9 (patch) | |
tree | 757d1dca542b1704309aec9823693b5f44387510 /pcap-int.h | |
parent | f9e8924f56bcd908cf1c0a1731286b1451716ba5 (diff) |
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-int.h')
-rw-r--r-- | pcap-int.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 *); |