tcpsinfo_t
Structure
The tcpsinfo_t
structure contains tcp
state information.
typedef struct tcpsinfo { uintptr tcps_addr; int tcps_local; /* is delivered locally, boolean */ int tcps_active; /* active open (from here), boolean */ uint16_t tcps_lport; /* local port */ uint16_t tcps_rport; /* remote port */ string tcps_laddr; /* local address, as a string */ string tcps_raddr; /* remote address, as a string */ int32_t tcps_state;/* TCP state. Use inline tcp_state_string[]to convert to string */ uint32_t tcps_iss; /* initial sequence # sent */ uint32_t tcps_suna; /* sequence # sent but unacked */ uint32_t tcps_snxt; /* next sequence # to send */ uint32_t tcps_rack; /* sequence # acked */ uint32_t tcps_rnxt; /* next sequence # expected */ uint32_t tcps_swnd; /* send window size */ uint32_t tcps_snd_ws; /* send window scaling */ uint32_t tcps_rwnd; /* receive window size */ uint32_t tcps_rcv_ws; /* receive window scaling */ uint32_t tcps_cwnd; /* congestion window */ uint32_t tcps_cwnd_ssthresh; /* threshold for congestion avoidance */ uint32_t tcps_sack_fack; /* SACK sequence # acked */ uint32_t tcps_sack_snxt; /* next SACK seq # for retransmission */ uint32_t tcps_rto; /* round-trip timeout, msec */ uint32_t tcps_mss; /* max segment size */ int tcps_retransmit; /* retransmit send event, boolean */ } tcpsinfo_t;
It may seem redundant to supply the local and remote ports and addresses here as well as in the tcpinfo_t
below, but the tcp:::state-change
probes do not have associated tcpinfo_t
data, so in order to map the state change to a specific port, you require this data here.
Table 11-68 tcpsinfo_t
Members
Member | Description |
---|---|
|
Address of translated |
|
Local, boolean. 0: is not delivered locally and uses a physical network interface, 1: is delivered locally including loopback interfaces, such as |
|
Active open, boolean. 0: TCP connection was created from a remote host, 1: TCP connection was created from this host. |
|
Local port associated with the TCP connection. |
|
Remote port associated with the TCP connection. |
|
Local address associated with the TCP connection, as a string. |
|
Remote address associated with the TCP connection, as a string. |
|
The following states are available for a
Use inline |
|
Initial sequence number sent. |
|
Lowest sequence number for which you have sent data but not received acknowledgement. |
|
Next sequence number to send. |
|
Highest sequence number for which you have received and sent acknowledgement. |
|
Next sequence number expected on receive side. |
|
TCP send window size. |
|
TCP send window scale. |
|
TCP receive window size. |
|
TCP receive window scale. |
|
TCP congestion window size. |
tcps_cwnd_ssthresh |
TCP congestion window threshold. When the congestion window is greater than |
tcps_sack_fack |
Highest |
tcps_sack_snxt |
Next sequence num to be retransmitted using SACK. |
tcps_rto |
Round-trip timeout. If you do not receive acknowledgement of data sent |
tcps_mss |
Maximum segment size. |
tcps_retransmit |
Send is a retransmit, boolean. 1 for |