Commit:     fd10279bc7405c4f1e47a008686d3d9ad71d7f6d
Parent:     a357dde9df33f28611e6a3d4f88265e39bcc8880
Author:     Vlad Yasevich <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 15 12:13:32 2007 -0500
Committer:  Vlad Yasevich <[EMAIL PROTECTED]>
CommitDate: Thu Nov 29 10:17:41 2007 -0500

    SCTP: Fix the number of HB transmissions.
    Our treatment of Heartbeats is special in that the inital HB chunk
    counts against the error count for the association, where as for
    other chunks, only retransmissions or timeouts count against us.
    As a result, we had an off-by-1 situation with a number of
    Heartbeats we could send.
    Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]>
 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 b8bbb96..5fb8477 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -959,7 +959,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) {
                sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR,
                /* CMD_ASSOC_FAILED calls CMD_DELETE_TCB. */
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

Reply via email to