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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user