Skip to content

Commit

Permalink
SCTP: Uncomfirmed transports can't become Inactive
Browse files Browse the repository at this point in the history
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 <vladislav.yasevich@hp.com>
  • Loading branch information
Vlad Yasevich committed Aug 30, 2007
1 parent 2772b49 commit cc75689
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion net/sctp/associola.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cc75689

Please sign in to comment.