summaryrefslogtreecommitdiffstats
path: root/net/sctp/transport.c
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2007-03-22 20:26:25 +0100
committerDavid S. Miller <davem@davemloft.net>2007-03-22 20:26:25 +0100
commit289f42492c0958871b6045050474c752ec99704f (patch)
tree0bde956ccdf95cab650c6155071baac34a54a958 /net/sctp/transport.c
parent[BRIDGE]: Fix fdb RCU race (diff)
downloadlinux-289f42492c0958871b6045050474c752ec99704f.tar.xz
linux-289f42492c0958871b6045050474c752ec99704f.zip
[SCTP]: Correctly reset ssthresh when restarting association
Reset ssthresh to the correct value (peer's a_rwnd) when restarting association. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r--net/sctp/transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index c4699f5c409d..4d8c2ab864fc 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -538,7 +538,7 @@ void sctp_transport_reset(struct sctp_transport *t)
* (see Section 6.2.1)
*/
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->rtt = 0;
t->srtt = 0;