diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-09-10 01:00:46 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-09-11 12:29:03 -0700 |
commit | af6c0bffdd89b854be1d681972b37c4bc14858ed (patch) | |
tree | d24f2d6b3d198cce444dd6bda839343d57b2e827 | |
parent | 9ba4cf6b29ed742c6fea2644db304e31ea8dd9e8 (diff) | |
download | libpcap-1.7.tar.gz |
The pcap_win pointer in pcap_activate_win32() is only used for DAG cards.libpcap-1.7
(We really shouldn't have the Packet.dll routines know about different
networking adapter types, now that libpcap/WinPcap has its own
per-adapter ops vector.)
-rw-r--r-- | pcap-win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pcap-win32.c b/pcap-win32.c index 6ee03125..dfa3630c 100644 --- a/pcap-win32.c +++ b/pcap-win32.c @@ -696,7 +696,9 @@ pcap_cleanup_win32(pcap_t *p) static int pcap_activate_win32(pcap_t *p) { +#ifdef HAVE_DAG_API struct pcap_win *pw = p->priv; +#endif NetType type; char errbuf[PCAP_ERRBUF_SIZE+1]; |