From 2caebcda8ea2e31e6c85a031de93f576a1d8be3f Mon Sep 17 00:00:00 2001 From: david Date: Sat, 31 Dec 2011 21:59:46 +0000 Subject: [PATCH] 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). --- scan_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_engine.cc b/scan_engine.cc index 7ef70b96f..5530f4998 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -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;