aboutsummaryrefslogtreecommitdiff
path: root/pcap-new.c
diff options
context:
space:
mode:
authorYang Luo <hsluoyz@qq.com>2016-07-25 10:35:13 +0800
committerYang Luo <hsluoyz@qq.com>2016-07-26 10:38:55 +0800
commit0a77b6c840696f25789f24c24655dcbedfe44b9a (patch)
treeb7997e2b28ccc1c46b0d5879d1c05e06275a0984 /pcap-new.c
parentd917be2e3487e718e74e98c77a2bc0e3f4985791 (diff)
downloadlibpcap-0a77b6c840696f25789f24c24655dcbedfe44b9a.tar.gz
Switch back to managed mode when closing the pcap if it switched it on, don't switch it if the adapter is already in monitor mode when capture starts.
Diffstat (limited to 'pcap-new.c')
-rw-r--r--pcap-new.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-new.c b/pcap-new.c
index bd0ac82e..737b5fde 100644
--- a/pcap-new.c
+++ b/pcap-new.c
@@ -74,7 +74,7 @@ SOCKET sockmain;
*/
struct pcap_win {
int nonblock;
-
+ int rfmon_selfstart; /* a flag tells whether the monitor mode is set by itself */
int filtering_in_kernel; /* using kernel filter */
#ifdef HAVE_DAG_API