Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=289f42492c0958871b6045050474c752ec99704f
Commit:     289f42492c0958871b6045050474c752ec99704f
Parent:     b19cbe2a1695c09c74f83646c4b82b51123b3690
Author:     Vlad Yasevich <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 22 12:26:25 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Mar 22 12:26:25 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/sctp/transport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index c4699f5..4d8c2ab 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to