summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-07-17 10:20:45 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-07-18 18:14:01 +0000
commitcef02be220eff4aa32ec7ff56b1e0a552faa1280 (patch)
tree755229cae4197c86dc3c1d3d1101b364dc4e3f8a /src
parent630741546192c5a61b4a36a954bd2f3fe2af940a (diff)
session: Refactor invalid session idx/handle
Type: refactor Change-Id: I885d9d2af1674f705339e3e96f87ff766965c9e5 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/hs_apps/sapi/quic_echo.c3
-rw-r--r--src/vcl/vcl_private.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/hs_apps/sapi/quic_echo.c b/src/plugins/hs_apps/sapi/quic_echo.c
index a0bba575979..f8fc2f05a07 100644
--- a/src/plugins/hs_apps/sapi/quic_echo.c
+++ b/src/plugins/hs_apps/sapi/quic_echo.c
@@ -38,9 +38,6 @@
#include <vpp/api/vpe_all_api_h.h>
#undef vl_printfun
-#define SESSION_INVALID_INDEX ((u32)~0)
-#define SESSION_INVALID_HANDLE ((u64)~0)
-
#define CHECK(expected, result, _fmt, _args...) \
if (expected != result) \
ECHO_FAIL ("expected %d, got %d : " _fmt, expected, result, ##_args);
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index b19e6b548f3..544b2880fe1 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -341,6 +341,7 @@ typedef struct vppcom_main_t_
extern vppcom_main_t *vcm;
#define VCL_INVALID_SESSION_INDEX ((u32)~0)
+#define VCL_INVALID_SESSION_HANDLE ((u64)~0)
#define VCL_INVALID_SEGMENT_INDEX ((u32)~0)
#define VCL_INVALID_SEGMENT_HANDLE ((u64)~0)