27 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 39 memset (out, 0,
sizeof (*out));
40 clib_memcpy (&out->ip4, &in->un.ip4, sizeof (out->ip4));
43 clib_memcpy (&out->ip6, &in->un.ip6, sizeof (out->ip6));
53 memset (out, 0,
sizeof (*out));
55 clib_memcpy (&out->un.ip4, &in->ip4, sizeof (out->un.ip4));
60 clib_memcpy (&out->un.ip6, &in->ip6, sizeof (out->un.ip6));
67 switch (in->address.af)
76 out->
fp_len = in->address_length;
95 out->address_length = in->
fp_len;
fib_protocol_t fp_proto
protocol type
void ip_prefix_decode(const vl_api_prefix_t *in, fib_prefix_t *out)
void ip_address_encode(const ip46_address_t *in, vl_api_address_t *out)
Aggregrate type for a prefix.
u16 fp_len
The mask length.
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
#define ip46_address_is_ip4(ip46)
#define clib_memcpy(a, b, c)
void ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
void ip_prefix_encode(const fib_prefix_t *in, vl_api_prefix_t *out)