tcp: add counter for accepted connections

Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I2925134cfcfa36c14b3b69efa892b9b96fce2e6f
This commit is contained in:
Florin Coras
2023-11-28 11:30:42 -08:00
committed by Dave Barach
parent bffd4461d2
commit 6ae6c98d7c
2 changed files with 2 additions and 1 deletions

View File

@ -49,3 +49,4 @@ tcp_error (RCV_WND, rcv_wnd, WARN, "Segment not in receive window")
tcp_error (FIN_RCVD, fin_rcvd, INFO, "FINs received") tcp_error (FIN_RCVD, fin_rcvd, INFO, "FINs received")
tcp_error (LINK_LOCAL_RW, link_local_rw, ERROR, "No rewrite for link local connection") tcp_error (LINK_LOCAL_RW, link_local_rw, ERROR, "No rewrite for link local connection")
tcp_error (ZERO_RWND, zero_rwnd, WARN, "Zero receive window") tcp_error (ZERO_RWND, zero_rwnd, WARN, "Zero receive window")
tcp_error (CONN_ACCEPTED, conn_accepted, INFO, "Connections accepted")

View File

@ -2152,7 +2152,7 @@ tcp46_rcv_process_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
tcp_connection_cleanup (tc); tcp_connection_cleanup (tc);
goto drop; goto drop;
} }
error = TCP_ERROR_ACK_OK; error = TCP_ERROR_CONN_ACCEPTED;
break; break;
case TCP_STATE_ESTABLISHED: case TCP_STATE_ESTABLISHED:
/* We can get packets in established state here because they /* We can get packets in established state here because they