diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2006-01-30 16:00:40 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-30 16:00:40 -0800 |
commit | e2c2fc2c8f3750e1f7ffbb3ac2b885a49416110c (patch) | |
tree | 26aff65b275398addfe4cd8013b9efea3ff42016 /net | |
parent | 81845c21dc1ec7ce2bf12845dbc01e4880f9ea9a (diff) | |
download | linux-3.10-e2c2fc2c8f3750e1f7ffbb3ac2b885a49416110c.tar.gz linux-3.10-e2c2fc2c8f3750e1f7ffbb3ac2b885a49416110c.tar.bz2 linux-3.10-e2c2fc2c8f3750e1f7ffbb3ac2b885a49416110c.zip |
[SCTP]: heartbeats exceed maximum retransmssion limit
The number of HEARTBEAT chunks that an association may transmit is
limited by Association.Max.Retrans count; however, the code allows
us to send one extra heartbeat.
This patch limits the number of heartbeats to the maximum count.
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')
-rw-r--r-- | net/sctp/sm_statefuns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 018f169a50e..2b9a832b29a 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c @@ -884,7 +884,7 @@ sctp_disposition_t sctp_sf_sendbeat_8_3(const struct sctp_endpoint *ep, { struct sctp_transport *transport = (struct sctp_transport *) arg; - if (asoc->overall_error_count > asoc->max_retrans) { + if (asoc->overall_error_count >= asoc->max_retrans) { /* CMD_ASSOC_FAILED calls CMD_DELETE_TCB. */ sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, SCTP_U32(SCTP_ERROR_NO_ERROR)); |