aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/udp/udp_error.def1
-rw-r--r--src/vnet/udp/udp_input.c1
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)
{
/*