Synopsis
void ctl_tcp_register_stats(void);
Description

ctl_tcp_register_stats registers the statistics associated with TCP. Note that statistics regarding TCP are always collected but they are exposed to the user only by registering with the statistics manager.

The statistics are:

failed_checksum
The number of TCP segments received with a failed checksum.
bad_length
The number of TCP segments received which had a bad length.
tx_malloc_fail
When a TCP segment is ready for transmission, the network stack attempts to allocate a transmission frame. If the stack fails allocate a transmission frame because there is insufficient memory, it is recorded in this statistic.
state_error
This records the number of times that the TCP state machine is detected to be in error. This can happen when packets arrive that do not conform to the TCP state machine.
bad_mss
The number of socket connections attempted with an invalid MSS.
cnx_refused_unsupported
The TCP connection request was refused because there are no listeners registered for the port.
cnx_refused_ports
The TCP connection request was refused because the maximum number of connections are already open for the port.
cnx_refused_sockets
The TCP connection request was refused because there are insufficient sockets in the socket pool to establish a connection.
tx_total_retrans
The total number of retransmission requests because an ACK from the other TCP was lost.
tx_1_retrans
A count of the number of segments that required a single retransmission as an ACK form the other TCP was lost.
tx_2_retrans
A count of the number of segments that required two retransmission as an ACK form the other TCP was lost.
tx_unreach
A count of the number of segments that exceeded two retransmissions and considered the other TCP unreachable.
rx_fast_retrans
A count of the number of received segments that are lost and the network stack re-requested using the fast restransmission algorithm.