1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

Move the code that handles --nogcc so it doesn't split up the code that handles

--min-rate and --max-rate. Doesn't affect functionality.
This commit is contained in:
david
2008-12-03 22:16:19 +00:00
parent 12a4288aa8
commit 55482759d3

View File

@@ -962,13 +962,6 @@ bool GroupScanStats::sendOK(struct timeval *when) {
}
}
/* In case the user specifically asked for no group congestion control */
if (o.nogcc) {
if (when)
*when = USI->now;
return true;
}
/* Enforce a minimum scanning rate, if necessary. If we're ahead of schedule,
record the time of the next scheduled send and submit to congestion
control. If we're behind schedule, return true to indicate that we need to
@@ -984,6 +977,13 @@ bool GroupScanStats::sendOK(struct timeval *when) {
}
}
/* In case the user specifically asked for no group congestion control */
if (o.nogcc) {
if (when)
*when = USI->now;
return true;
}
/* When there is only one target left, let the host congestion
stuff deal with it. */
if (USI->numIncompleteHostsLessThan(2)) {