diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-30 01:42:49 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-30 01:42:49 -0700 |
commit | 985f531bfaf50ebad71c512bf6c109f0bae6c443 (patch) | |
tree | 6c16847464356e09d6e0abc0402e22e370add61d /pcap-linux.c | |
parent | d6998249084df8dc1131b8dd3cbce0d65a075b4f (diff) |
Don't have pcap_create_common() set opt.device.
Instead, have pcap_create() do so.
Also have pcap_create() on Windows handle converting a little-endian
UCS-2/UTF-16 string to ASCII.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index cae2e21a..ea38fff5 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -454,11 +454,11 @@ static struct sock_fprog total_fcode #endif /* SO_ATTACH_FILTER */ pcap_t * -pcap_create_interface(const char *device, char *ebuf) +pcap_create_interface(char *ebuf) { pcap_t *handle; - handle = pcap_create_common(device, ebuf, sizeof (struct pcap_linux)); + handle = pcap_create_common(ebuf, sizeof (struct pcap_linux)); if (handle == NULL) return NULL; |