From d0df49f26eabf2f534b567f3370e50c4e804aeea Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 8 Aug 2018 01:06:40 -0700 Subject: Use IP address types on UDP encap API Change-Id: I3c714c519b6d0009329b50947ce250c18ee2a85a Signed-off-by: Neale Ranns --- src/vnet/ip/ip_types_api.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/vnet/ip/ip_types_api.h') diff --git a/src/vnet/ip/ip_types_api.h b/src/vnet/ip/ip_types_api.h index 2ad59ae438e..1bc899a4588 100644 --- a/src/vnet/ip/ip_types_api.h +++ b/src/vnet/ip/ip_types_api.h @@ -22,23 +22,35 @@ #include #include +#include /** * Forward declarations so we need not #include the API definitions here */ struct _vl_api_address; struct _vl_api_prefix; +struct _vl_api_mprefix; -extern void ip_address_decode (const struct _vl_api_address *in, - ip46_address_t * out); +extern ip46_type_t ip_address_decode (const struct _vl_api_address *in, + ip46_address_t * out); extern void ip_address_encode (const ip46_address_t * in, - struct _vl_api_address *out); + ip46_type_t type, struct _vl_api_address *out); extern void ip_prefix_decode (const struct _vl_api_prefix *in, fib_prefix_t * out); extern void ip_prefix_encode (const fib_prefix_t * in, struct _vl_api_prefix *out); +extern void ip_mprefix_decode (const struct _vl_api_mprefix *in, + mfib_prefix_t * out); +extern void ip_mprefix_encode (const mfib_prefix_t * in, + struct _vl_api_mprefix *out); + +extern u8 *format_vl_api_address (u8 * s, va_list * args); +extern u8 *format_vl_api_address_union (u8 * s, va_list * args); +extern u8 *format_vl_api_prefix (u8 * s, va_list * args); +extern u8 *format_vl_api_mprefix (u8 * s, va_list * args); + #endif /* -- cgit 1.2.3-korg