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-null.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-null.c')
-rw-r--r-- | pcap-null.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-null.c b/pcap-null.c index 20f6f3ee..af46b8c7 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(const char *device, char *ebuf) +pcap_create_interface(char *ebuf) { (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); return (NULL); |