rapid7/metasploit-framework — pull request #214 by mephos (2012-03-02 09:59:34+00:00)
Title: change sniffer behaviour when stopping capture. workaround if pcap_finda...

...lldev fails

When doing sniffer_stop, packets are no longer discarded. User has to download them (they are then released) or release them (released and not downloaded)

see http://dev.metasploit.com/redmine/issues/6369

also workaround if pcap_findalldevs fails, fallback to netlink socket.