From: Florin Coras Date: Mon, 25 May 2020 18:17:03 +0000 (+0000) Subject: vcl: fix udp connected check X-Git-Tag: v21.01-rc0~353 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=a4dac8af0eb4271db0c528a00beca58f41b51c95;p=vpp.git vcl: fix udp connected check Type: fix Signed-off-by: Florin Coras Change-Id: I83dafe10cdc78fbb9a751f32155cd84d281b12d9 --- diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h index c4ec02e8306..77f2be7bebe 100644 --- a/src/vcl/vcl_private.h +++ b/src/vcl/vcl_private.h @@ -529,7 +529,7 @@ static inline u8 vcl_session_is_cl (vcl_session_t * s) { if (s->session_type == VPPCOM_PROTO_UDP) - return 1; + return !(s->flags & VCL_SESSION_F_CONNECTED); return 0; }