mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
host, which means that it is either found down or else all port/script/traceroute/etc. scanning is finished. In r12798 I made it be updated as soon as DNS resolution happened, to make the status display "X undergoing Ping Scan" accurate. However the main loop also uses this variable to count how many addresses have been generated so it knows when to stop scanning random addresses. If -iR was used, only the first hostgroup out of all the random addresses would be fully scanned and then the scan would end. This change fixes that and also makes the output more like it was pre-r12798; for example, if you had done name resolution on 1024 hosts with --max-hostgroup 8, and had found the 8th up host at the 280th one pinged, the output was Stats: 0:00:29 elapsed; 1016 hosts completed (8 up), 8 undergoing Connect Scan and is now Stats: 0:00:29 elapsed; 272 hosts completed (8 up), 8 undergoing Connect Scan
24 KiB
24 KiB