From 66ec467cda9955a7d72f1ac0639e42909f4fdea7 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 15 Jun 2020 07:59:40 -0700 Subject: vcl: move helper functions out of header file Type: improvement Signed-off-by: Florin Coras Change-Id: I3889fd80b145cf80f76f6054d63247e76bdf20ff --- src/vcl/vcl_private.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/vcl/vcl_private.h') diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h index 593e63f3b09..4a739e64aff 100644 --- a/src/vcl/vcl_private.h +++ b/src/vcl/vcl_private.h @@ -587,6 +587,12 @@ vcl_ip_copy_to_ep (ip46_address_t * ip, vppcom_endpt_t * ep, u8 is_ip4) clib_memcpy_fast (ep->ip, &ip->ip6, sizeof (ip6_address_t)); } +static inline int +vcl_proto_is_dgram (uint8_t proto) +{ + return proto == VPPCOM_PROTO_UDP; +} + /* * Helpers */ @@ -652,7 +658,7 @@ void vcl_send_session_worker_update (vcl_worker_t * wrk, vcl_session_t * s, /* * VCL Binary API */ -int vppcom_connect_to_vpp (char *app_name); +int vppcom_connect_to_vpp (const char *app_name); void vppcom_disconnect_from_vpp (void); void vppcom_init_error_string_table (void); void vppcom_send_session_enable_disable (u8 is_enable); -- cgit 1.2.3-korg