mirror of
https://github.com/nmap/nmap.git
synced 2026-06-10 01:35:18 +00:00
Update the global o.numhosts_scanning variable within ultra_scan, so
that it is set properly for ping scan. Previously status reports during ping scan always looked like Stats: 25:34:33 elapsed; 991232 hosts completed (72530 up), 0 undergoing Ping Scan Note the "0 undergoing". Now that number will be set to 4096 or whatever the current ping scan group size happens to be.
This commit is contained in:
parent
1e6204ffe0
commit
7872aafa5d
3 changed files with 4 additions and 1 deletions
1
nmap.cc
1
nmap.cc
|
|
@ -1621,7 +1621,6 @@ int nmap_main(int argc, char *argv[]) {
|
|||
if (!currenths)
|
||||
break;
|
||||
}
|
||||
o.numhosts_scanned++;
|
||||
|
||||
if (currenths->flags & HOST_UP && !o.listscan)
|
||||
o.numhosts_up++;
|
||||
|
|
|
|||
|
|
@ -4873,6 +4873,9 @@ void ultra_scan(vector<Target *> &Targets, struct scan_lists *ports,
|
|||
}
|
||||
#endif
|
||||
|
||||
// Set the variable for status printing
|
||||
o.numhosts_scanning = Targets.size();
|
||||
|
||||
startTimeOutClocks(Targets);
|
||||
USI = new UltraScanInfo(Targets, ports, scantype);
|
||||
|
||||
|
|
|
|||
|
|
@ -529,6 +529,7 @@ do {
|
|||
goto batchfull;
|
||||
}
|
||||
hs->current_batch_sz++;
|
||||
o.numhosts_scanned++;
|
||||
}
|
||||
|
||||
if (hs->current_batch_sz < hs->max_batch_sz &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue