projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b19cbe2
)
[SCTP]: Correctly reset ssthresh when restarting association
author
Vlad Yasevich
<vladislav.yasevich@hp.com>
Thu, 22 Mar 2007 19:26:25 +0000
(12:26 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 22 Mar 2007 19:26:25 +0000
(12:26 -0700)
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>
net/sctp/transport.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/transport.c
b/net/sctp/transport.c
index c4699f5c409d3b416b8d2f5aa436d3da2e88597c..4d8c2ab864fcdeae38533dce7c24f042e8bca626 100644
(file)
--- 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;