Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cc75689a4c4eb94b2fd7e3870347b9237ab39503
Commit:     cc75689a4c4eb94b2fd7e3870347b9237ab39503
Parent:     2772b495efe341a02c867bc3a03d7362bd336832
Author:     Vlad Yasevich <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 24 19:30:25 2007 +0900
Committer:  Vlad Yasevich <[EMAIL PROTECTED]>
CommitDate: Thu Aug 30 13:55:41 2007 -0400

    SCTP: Uncomfirmed transports can't become Inactive
    
    Do not set Unconfirmed transports to Inactive state.  This may
    result in an inactive association being destroyed since we start
    counting errors on "inactive" transports against the association.
    This was found at the SCTP interop event.
    
    Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]>
---
 net/sctp/associola.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 498edb0..2ad1caf 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -727,7 +727,12 @@ void sctp_assoc_control_transport(struct sctp_association 
*asoc,
                break;
 
        case SCTP_TRANSPORT_DOWN:
-               transport->state = SCTP_INACTIVE;
+               /* if the transort was never confirmed, do not transition it
+                * to inactive state.
+                */
+               if (transport->state != SCTP_UNCONFIRMED)
+                       transport->state = SCTP_INACTIVE;
+
                spc_state = SCTP_ADDR_UNREACHABLE;
                break;
 
-
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