Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 289f4249 authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller
Browse files

[SCTP]: Correctly reset ssthresh when restarting association



Reset ssthresh to the correct value (peer's a_rwnd) when restarting
association.

Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b19cbe2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -538,7 +538,7 @@ void sctp_transport_reset(struct sctp_transport *t)
	 * (see Section 6.2.1)
	 * (see Section 6.2.1)
	 */
	 */
	t->cwnd = min(4*asoc->pathmtu, max_t(__u32, 2*asoc->pathmtu, 4380));
	t->cwnd = min(4*asoc->pathmtu, max_t(__u32, 2*asoc->pathmtu, 4380));
	t->ssthresh = SCTP_DEFAULT_MAXWINDOW;
	t->ssthresh = asoc->peer.i.a_rwnd;
	t->rto = asoc->rto_initial;
	t->rto = asoc->rto_initial;
	t->rtt = 0;
	t->rtt = 0;
	t->srtt = 0;
	t->srtt = 0;