mirror of
https://github.com/nmap/nmap.git
synced 2026-01-15 02:49:02 +00:00
fd259a2422df4f4f311943b19975ed04252cec97
This was previously gotten by setting the source address to be the same of the interface address of the matching route. However this can be wrong; when making a normal socket connection the source address is chosen differently. We create a SOCK_DGRAM socket, connect it, and read the local address with getsockname.
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.1%