Bugfix: Use formula from section 7.2.3 of RFC 4960. Reported by Martin Becke.

Approved by: rrs (mentor)
MFC after: 3 days
This commit is contained in:
Michael Tuexen 2009-10-27 18:17:07 +00:00
parent 613628c4d8
commit d18f7e0a98

View File

@ -348,7 +348,7 @@ sctp_cwnd_update_after_timeout(struct sctp_tcb *stcb, struct sctp_nets *net)
{
int old_cwnd = net->cwnd;
net->ssthresh = max(net->cwnd / 2, 2 * net->mtu);
net->ssthresh = max(net->cwnd / 2, 4 * net->mtu);
net->cwnd = net->mtu;
net->partial_bytes_acked = 0;