From 6ae6c98d7c548c31520fd3e4bcc3bc39bd1b74e6 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 28 Nov 2023 11:30:42 -0800 Subject: tcp: add counter for accepted connections Type: improvement Signed-off-by: Florin Coras Change-Id: I2925134cfcfa36c14b3b69efa892b9b96fce2e6f --- src/vnet/tcp/tcp_error.def | 1 + src/vnet/tcp/tcp_input.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vnet/tcp/tcp_error.def b/src/vnet/tcp/tcp_error.def index a6f0ce4b35f..87fdcc02615 100644 --- a/src/vnet/tcp/tcp_error.def +++ b/src/vnet/tcp/tcp_error.def @@ -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 (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 (CONN_ACCEPTED, conn_accepted, INFO, "Connections accepted") \ No newline at end of file diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 88ae0a32b60..c069a9b08d6 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2152,7 +2152,7 @@ tcp46_rcv_process_inline (vlib_main_t *vm, vlib_node_runtime_t *node, tcp_connection_cleanup (tc); goto drop; } - error = TCP_ERROR_ACK_OK; + error = TCP_ERROR_CONN_ACCEPTED; break; case TCP_STATE_ESTABLISHED: /* We can get packets in established state here because they -- cgit 1.2.3-korg