vcl: fix udp connected check 63/27363/2
authorFlorin Coras <fcoras@cisco.com>
Mon, 25 May 2020 18:17:03 +0000 (18:17 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 3 Jun 2020 17:55:37 +0000 (17:55 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I83dafe10cdc78fbb9a751f32155cd84d281b12d9
(cherry picked from commit a4dac8af0eb4271db0c528a00beca58f41b51c95)

src/vcl/vcl_private.h

index de3304f..593e63f 100644 (file)
@@ -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;
 }