]> The Tcpdump Group git mirrors - libpcap/commit
For mac80211 devices we need to clean up monitor mode on exit.
authorGuy Harris <[email protected]>
Fri, 9 Dec 2011 03:51:00 +0000 (19:51 -0800)
committerGuy Harris <[email protected]>
Fri, 9 Dec 2011 03:51:00 +0000 (19:51 -0800)
commit2766b8c8332de597f390a35e488cba8db2262b47
tree419bda880a46df474689d13cb4e14c9c8f5a7864
parent3aff0a4bee6f99736808b58a4f948fc4a304499a
For mac80211 devices we need to clean up monitor mode on exit.

Just as with non-mac80211 devices, the stuff we do to enter monitor mode
doesn't automatically get cleaned up when the capture device is closed,
so we need to arrange that pcap_close_all() be called when we exit, to
close all the pcap_t's and turn off monitor mode.
pcap-linux.c