mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Windows doesn't support selectable pcap fds, so instead of fiddling with adapter read timeouts via PacketSetReadTimeout, we get an event handle with pcap_get_event and WaitForSIngleObject. This means we don't need to extract the adapter from the pcap_t, which is not part of the libpcap API and was causing crashes switching between the libpcap versions used by WinPcap and Npcap.
72 KiB
72 KiB