170 a->ip6 = addr->
ip.
v6;
190 mask =
pow2_mask (preflen) << (32 - preflen);
191 mask = clib_host_to_net_u32 (mask);
213 m = (
u32 *) & mask_6[0];
215 for (j = 0; j < i0; j++)
222 m[i0] = clib_host_to_net_u32 (
pow2_mask (i1) << (32 - i1));
225 for (j = 0; j <
sizeof (mask_6); j++)
227 ip6->
as_u8[j] &= mask_6[j];
#define ip_prefix_addr(_a)
void ip_address_set(ip_address_t *dst, const void *src, u8 version)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u16 ip_version_to_size(u8 ver)
u16 ip_address_size(const ip_address_t *a)
#define ip_addr_version(_a)
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
#define clib_memcpy(d, s, n)
void ip_prefix_copy(void *dst, void *src)
static uword pow2_mask(uword x)
void ip_prefix_normalize(ip_prefix_t *a)
void ip_address_copy_addr(void *dst, const ip_address_t *src)
void ip_address_to_46(const ip_address_t *addr, ip46_address_t *a, fib_protocol_t *proto)
uword unformat_ip_address(unformat_input_t *input, va_list *args)
u8 * format_ip_prefix(u8 *s, va_list *args)
#define clib_warning(format, args...)
u8 * format_ip_address(u8 *s, va_list *args)
#define ip46_address_set_ip4(ip46, ip)
ip_address_family_t version
int ip_address_cmp(const ip_address_t *ip1, const ip_address_t *ip2)
#define ip_prefix_len(_a)
#define ip_prefix_version(_a)
void ip_address_copy(ip_address_t *dst, const ip_address_t *src)
static void ip_prefix_normalize_ip4(ip4_address_t *ip4, u8 preflen)
uword unformat_ip_prefix(unformat_input_t *input, va_list *args)
static void ip_prefix_normalize_ip6(ip6_address_t *ip6, u8 preflen)
vl_api_fib_path_nh_proto_t proto
union ip_address::@230 ip
int ip_prefix_cmp(ip_prefix_t *p1, ip_prefix_t *p2)