mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
12a4288aa8
commit
55482759d3
1 changed files with 7 additions and 7 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue