diff options
Diffstat (limited to 'src/vcl/vcl_bapi.c')
-rw-r--r-- | src/vcl/vcl_bapi.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/vcl/vcl_bapi.c b/src/vcl/vcl_bapi.c index d3a27acaced..900fb966242 100644 --- a/src/vcl/vcl_bapi.c +++ b/src/vcl/vcl_bapi.c @@ -61,12 +61,6 @@ static void vcm->bapi_app_state = STATE_APP_ENABLED; } -static u64 -vcl_vpp_worker_segment_handle (u32 wrk_index) -{ - return (VCL_INVALID_SEGMENT_HANDLE - wrk_index - 1); -} - static void vl_api_app_attach_reply_t_handler (vl_api_app_attach_reply_t * mp) { @@ -691,6 +685,21 @@ vcl_bapi_app_worker_del (vcl_worker_t * wrk) } int +vcl_bapi_recv_fds (vcl_worker_t * wrk, int *fds, int n_fds) +{ + clib_error_t *err; + + if ((err = vl_socket_client_recv_fd_msg2 (&wrk->bapi_sock_ctx, fds, n_fds, + 5))) + { + clib_error_report (err); + return -1; + } + + return 0; +} + +int vppcom_session_tls_add_cert (uint32_t session_handle, char *cert, uint32_t cert_len) { |