From 2ca88ff97884ec9ed20a853b13cee6d86f9c9d0f Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 27 Jan 2022 16:25:43 +0100 Subject: vapi: support api clients within vpp process Add vapi_connect_from_vpp() and vapi_disconnect_from_vpp() calls to allow API clients from within VPP process. Add a new memclnt_create version that gives the user a knob to enable or disable dead client scans (keepalive). Type: feature Signed-off-by: Ole Troan Change-Id: Id0b7bb89308db3a3aed2d3fcbedf4e1282dcd03f Signed-off-by: Ole Troan --- src/vlibapi/api_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vlibapi') diff --git a/src/vlibapi/api_common.h b/src/vlibapi/api_common.h index 4c48b003e1e..491ecb8eaef 100644 --- a/src/vlibapi/api_common.h +++ b/src/vlibapi/api_common.h @@ -75,6 +75,8 @@ typedef struct vl_api_registration_ /* socket client only */ u32 server_handle; /**< Socket client only: server handle */ u32 server_index; /**< Socket client only: server index */ + + bool keepalive; /**< Dead client scan */ } vl_api_registration_t; #define VL_API_INVALID_FI ((u32)~0) -- cgit 1.2.3-korg