diff options
author | Florin Coras <fcoras@cisco.com> | 2024-09-20 09:40:57 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-09-20 16:20:56 +0000 |
commit | 6126ec9c5327c41d6bbf60b352c7b9a6699d9ade (patch) | |
tree | 9e8f2e0290ed2d4deb3ae38cc701c9dcd49d029c /src | |
parent | 05f713738973597189c390cbb11463a458c57682 (diff) |
udp: node counter for connected sessions
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I4c0c1b27adb3e3ea3c3ff6353b068447db19fa85
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/udp/udp_error.def | 1 | ||||
-rw-r--r-- | src/vnet/udp/udp_input.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/udp/udp_error.def b/src/vnet/udp/udp_error.def index ef19970ce72..843aacfc6ef 100644 --- a/src/vnet/udp/udp_error.def +++ b/src/vnet/udp/udp_error.def @@ -28,3 +28,4 @@ udp_error (CREATE_SESSION, create_session, ERROR, "Failed to create session") udp_error (MQ_FULL, mq_full, ERROR, "Application msg queue full") udp_error (INVALID_CONNECTION, invalid_connection, ERROR, "Invalid connection") udp_error (PKTS_SENT, pkts_sent, INFO, "Packets sent") +udp_error (CONNECTED, connected, INFO, "Connected session") diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c index a90461186c1..693824f9628 100644 --- a/src/vnet/udp/udp_input.c +++ b/src/vnet/udp/udp_input.c @@ -272,6 +272,7 @@ udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, uc0->sw_if_index = vnet_buffer (b[0])->sw_if_index[VLIB_RX]; if (uc0->flags & UDP_CONN_F_CONNECTED) { + error0 = UDP_ERROR_CONNECTED; if (s0->thread_index != thread_index) { /* |