aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-04-27 13:38:35 -0700
committerDave Barach <vpp@barachs.net>2023-04-28 15:57:09 +0000
commit89627e8c58b7ec87b94aa9e5097c932d663d5fab (patch)
tree9b79518e8a33d52082e16cd53ee139c5838d5361 /src
parent51f1b26e85a758338b13bacfdf4ba9e7d7cb7f8f (diff)
vcl: inherit connected flag on accepted cl sessions
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I2d1976cb8061534a7e93d4dd2283abaf70a33f7c
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vppcom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index b170b39a07d..8dab320afed 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -361,6 +361,8 @@ vcl_session_accepted_handler (vcl_worker_t * wrk, session_accepted_msg_t * mp,
session->transport.lcl_ip = mp->lcl.ip;
session->session_type = listen_session->session_type;
session->is_dgram = vcl_proto_is_dgram (session->session_type);
+ if (session->is_dgram)
+ session->flags |= (listen_session->flags & VCL_SESSION_F_CONNECTED);
session->listener_index = listen_session->session_index;
listen_session->n_accepted_sessions++;