mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 07:38:39 +00:00
The Nsock select engine stores readiness information in a mask instead of doing an FD_ISSET against the descriptor every time. This is a good idea, but it removed a special case in the pre-engines code: in case PCAP_CAN_DO_SELECT is not defined, we can't do FD_ISSET on the descriptor because it is -1. Here we check for that occurrence and set EV_READ in the mask so that a non-blocking pcap read can happen every iteration. |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| src | ||
| nsock.vcxproj | ||