1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 04:19:02 +00:00

soon to go to wtci

This commit is contained in:
fyodor
2005-10-23 02:18:04 +00:00
parent ba5fe2eb20
commit 374b6c9a82
5 changed files with 36 additions and 25 deletions

View File

@@ -1216,7 +1216,7 @@ int determineScanGroupSize(int hosts_scanned_so_far,
if (o.UDPScan())
groupsize = 50;
else if (o.TCPScan()) {
groupsize = MAX(1024 / ports->tcp_count, 30);
groupsize = MAX(1024 / (ports->tcp_count ? ports->tcp_count : 1), 30);
if (ports->tcp_count > 1000 && hosts_scanned_so_far == 0 &&
o.timing_level < 4)
groupsize = 5; // Give quick results for the very first batch