Page MenuHomeFreeBSD

D43797.diff
No OneTemporary

D43797.diff

diff --git a/sys/netinet/cc/cc_htcp.c b/sys/netinet/cc/cc_htcp.c
--- a/sys/netinet/cc/cc_htcp.c
+++ b/sys/netinet/cc/cc_htcp.c
@@ -229,9 +229,9 @@
* per RTT.
*/
CCV(ccv, snd_cwnd) += (((htcp_data->alpha <<
- HTCP_SHIFT) / (CCV(ccv, snd_cwnd) /
- CCV(ccv, t_maxseg))) * CCV(ccv, t_maxseg))
- >> HTCP_SHIFT;
+ HTCP_SHIFT) / (max(1,
+ CCV(ccv, snd_cwnd) / CCV(ccv, t_maxseg)))) *
+ CCV(ccv, t_maxseg)) >> HTCP_SHIFT;
}
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 1:17 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14761989
Default Alt Text
D43797.diff (487 B)

Event Timeline