mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
Add a missing factor of USI->perf.ca_incr to host cwnd updates.
USI->perf.ca_incr is either 1 or 2 (2 with -T4 or greater).
This commit is contained in:
@@ -2309,7 +2309,7 @@ static void ultrascan_adjust_timing(UltraScanInfo *USI, HostScanStats *hss,
|
|||||||
hss->timing.cwnd = hss->timing.ssthresh;
|
hss->timing.cwnd = hss->timing.ssthresh;
|
||||||
} else {
|
} else {
|
||||||
/* Congestion avoidance mode */
|
/* Congestion avoidance mode */
|
||||||
hss->timing.cwnd += ping_magnifier / hss->timing.cwnd * hss->cc_scale();
|
hss->timing.cwnd += ping_magnifier * USI->perf.ca_incr / hss->timing.cwnd * hss->cc_scale();
|
||||||
}
|
}
|
||||||
if (hss->timing.cwnd > USI->perf.max_cwnd)
|
if (hss->timing.cwnd > USI->perf.max_cwnd)
|
||||||
hss->timing.cwnd = USI->perf.max_cwnd;
|
hss->timing.cwnd = USI->perf.max_cwnd;
|
||||||
|
|||||||
Reference in New Issue
Block a user