1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +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:
david
2011-12-31 21:59:46 +00:00
parent cfa3e3e8c2
commit 2caebcda8e

View File

@@ -2309,7 +2309,7 @@ static void ultrascan_adjust_timing(UltraScanInfo *USI, HostScanStats *hss,
hss->timing.cwnd = hss->timing.ssthresh;
} else {
/* 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)
hss->timing.cwnd = USI->perf.max_cwnd;