sctplsinfo_t Structure

The sctplsinfo_t structure contains the previous sctp state during a state change.

typedef struct sctplsinfo {
        int32_t sctps_state;              /* SCTP state */
} sctplsinfo_t;

The sctps_state member is the previous SCTP state. Inline definitions are provided for the various SCTP states such as SCTP_STATE_CLOSED and SCTP_STATE_IDLE. Use inline sctp_state_string[] to convert state to a string.