sctpsinfo_t Structure

The sctpsinfo_t structure contains informations about stable SCTP details from sctp_t.

typedef struct sctpsinfo {
        uintptr_t sctps_addr;           /* pointer to sctp_t */
        int sctps_num_raddrs;           /* number of remote addresses*/
        uintptr_t sctps_raddrs;         /* pointer to sctp_faddrs */
        int sctps_num_laddrs;
        uintptr_t sctps_laddrs;        /* pointer to sctp_saddrs */
        uint16_t sctps_lport;           /* local port */
        uint16_t sctps_rport;           /* remote port */
        string sctps_laddr;             /* local address, as a string */
        string sctps_raddr;             /* remote address, as a string */
        int32_t sctps_state;
} sctpsinfo_t;

It might seem redundant to supply the local and remote ports and addresses here and in the sctpinfo_t, but the sctp:::state-change probes do not have associated sctpinfo_t data. To map the state change to a specific port, we need the associated sctpinfo_t data.

The following table contains the members of scptsinfo_t structure:

Table 11-63 sctpsinfo_t Members

Member Description

sctps_addr

Address of translated sctp_t *.

sctps_num_raddrs

Number of remote addresses.

sctps_raddrs

Pointer to first sctp_faddr_t *.

sctps_num_laddrs

Number of local addresses.

sctps_laddrs

Pointer to sctp_saddrs* address.

sctps_lport

Local port associated with the SCTP connection.

sctps_rport

Remote port associated with the SCTP connection.

sctps_laddr

Local address associated with the SCTP connection, as a string.

sctps_raddr

Remote address associated with the SCTP connection, as a string.

sctps_state

SCTP state. Inline definitions are provided for the various SCTP states such as SCTP_STATE_CLOSE and SCTP_STATE_IDLE. Use inline sctp_state_string[] to convert state to a string.