diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2006-01-30 15:59:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-30 15:59:54 -0800 |
commit | 81845c21dc1ec7ce2bf12845dbc01e4880f9ea9a (patch) | |
tree | 70bcfbad6cb4076b16da72f7c7f31be65b7e7dfc /net/sctp/socket.c | |
parent | 7add2a439868d636910fb6a216b12c7392778956 (diff) | |
download | lwn-81845c21dc1ec7ce2bf12845dbc01e4880f9ea9a.tar.gz lwn-81845c21dc1ec7ce2bf12845dbc01e4880f9ea9a.zip |
[SCTP]: correct the number of INIT retransmissions
We currently count the initial INIT/COOKIE_ECHO chunk toward the
retransmit count and thus sends a total of sctp_max_retrans_init chunks.
The correct behavior is to retransmit the chunk sctp_max_retrans_init in
addition to sending the original.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index fb1821d9f338..0ea947eb6813 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -5426,7 +5426,7 @@ out: return err; do_error: - if (asoc->init_err_counter + 1 >= asoc->max_init_attempts) + if (asoc->init_err_counter + 1 > asoc->max_init_attempts) err = -ETIMEDOUT; else err = -ECONNREFUSED; |