mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 15:09:01 +00:00
05c713d22a325852bfd0d1d8dc730e5a06902abc
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.
Here is some documentation for Nmap, but these files are much less comprehensive than what you'll find at the actual Nmap documentation site ( http://nmap.org ).
Description
Languages
C
37.8%
Lua
28.1%
C++
16.7%
Shell
5.8%
Python
4.2%
Other
7.2%