tcplsinfo_t Structure
The tcplsinfo_t structure contains the previous tcp state during a state change.
typedef struct tcplsinfo {
int32_t tcps_state; /* TCP state */
} tcplsinfo_t;The tcps_state member of tcplsinfo_t contains the previous TCP state. Inline definitions are provided for the various TCP states: TCP_STATE_CLOSED, TCP_STATE_SYN_SENT, and so on. Use inline tcp_state_string[] to convert state to a string.