diff options
author | Yang Luo <hsluoyz@qq.com> | 2016-07-25 10:35:13 +0800 |
---|---|---|
committer | Yang Luo <hsluoyz@qq.com> | 2016-07-26 10:38:55 +0800 |
commit | 0a77b6c840696f25789f24c24655dcbedfe44b9a (patch) | |
tree | b7997e2b28ccc1c46b0d5879d1c05e06275a0984 /pcap-new.c | |
parent | d917be2e3487e718e74e98c77a2bc0e3f4985791 (diff) | |
download | libpcap-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |