Go to the source code of this file.
|
u8 * | format_ip46_type (u8 *s, va_list *args) |
|
typedef | CLIB_PACKED (union ip46_address_t_ { struct { u32 pad[3];ip4_address_t ip4;};ip6_address_t ip6;u8 as_u8[16];u64 as_u64[2];}) ip46_address_t |
|
static u8 | ip46_address_is_ip4 (const ip46_address_t *ip46) |
|
static void | ip46_address_mask_ip4 (ip46_address_t *ip46) |
|
static void | ip46_address_set_ip4 (ip46_address_t *ip46, const ip4_address_t *ip) |
|
static void | ip46_address_reset (ip46_address_t *ip46) |
|
static int | ip46_address_cmp (const ip46_address_t *ip46_1, const ip46_address_t *ip46_2) |
|
static u8 | ip46_address_is_zero (const ip46_address_t *ip46) |
|
static u8 | ip46_address_is_equal (const ip46_address_t *ip46_1, const ip46_address_t *ip46_2) |
|
static_always_inline int | ip4_address_is_equal (const ip4_address_t *ip4_1, const ip4_address_t *ip4_2) |
|
static_always_inline int | ip46_address_is_equal_v4 (const ip46_address_t *ip46, const ip4_address_t *ip4) |
|
static_always_inline int | ip46_address_is_equal_v6 (const ip46_address_t *ip46, const ip6_address_t *ip6) |
|
static_always_inline void | ip46_address_copy (ip46_address_t *dst, const ip46_address_t *src) |
|
static_always_inline void | ip46_address_set_ip6 (ip46_address_t *dst, const ip6_address_t *src) |
|
static ip46_address_t | to_ip46 (u32 is_ipv6, u8 *buf) |
|
static ip46_type_t | ip46_address_get_type (const ip46_address_t *ip) |
|
static uword | ip46_address_is_multicast (const ip46_address_t *a) |
|
void | ip4_address_increment (ip4_address_t *i) |
|
void | ip6_address_increment (ip6_address_t *i) |
|
void | ip46_address_increment (ip46_type_t type, ip46_address_t *ip) |
|
◆ FOREACH_IP46_TYPE
◆ ip46_address_initializer
#define ip46_address_initializer {{{ 0 }}} |
◆ IP46_N_TYPES
◆ ip46_type_t
Enumerator |
---|
IP46_TYPE_ANY | |
IP46_TYPE_BOTH | |
IP46_TYPE_IP4 | |
IP46_TYPE_IP6 | |
Definition at line 22 of file ip46_address.h.
◆ CLIB_PACKED()
◆ format_ip46_type()
u8* format_ip46_type |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ ip46_address_cmp()
static int ip46_address_cmp |
( |
const ip46_address_t * |
ip46_1, |
|
|
const ip46_address_t * |
ip46_2 |
|
) |
| |
|
inlinestatic |
◆ ip46_address_copy()
◆ ip46_address_get_type()
static ip46_type_t ip46_address_get_type |
( |
const ip46_address_t * |
ip | ) |
|
|
inlinestatic |
◆ ip46_address_increment()
void ip46_address_increment |
( |
ip46_type_t |
type, |
|
|
ip46_address_t * |
ip |
|
) |
| |
◆ ip46_address_is_equal()
static u8 ip46_address_is_equal |
( |
const ip46_address_t * |
ip46_1, |
|
|
const ip46_address_t * |
ip46_2 |
|
) |
| |
|
inlinestatic |
◆ ip46_address_is_equal_v4()
◆ ip46_address_is_equal_v6()
static_always_inline int ip46_address_is_equal_v6 |
( |
const ip46_address_t * |
ip46, |
|
|
const ip6_address_t * |
ip6 |
|
) |
| |
◆ ip46_address_is_ip4()
static u8 ip46_address_is_ip4 |
( |
const ip46_address_t * |
ip46 | ) |
|
|
inlinestatic |
◆ ip46_address_is_multicast()
static uword ip46_address_is_multicast |
( |
const ip46_address_t * |
a | ) |
|
|
inlinestatic |
◆ ip46_address_is_zero()
static u8 ip46_address_is_zero |
( |
const ip46_address_t * |
ip46 | ) |
|
|
inlinestatic |
◆ ip46_address_mask_ip4()
static void ip46_address_mask_ip4 |
( |
ip46_address_t * |
ip46 | ) |
|
|
inlinestatic |
◆ ip46_address_reset()
static void ip46_address_reset |
( |
ip46_address_t * |
ip46 | ) |
|
|
inlinestatic |
◆ ip46_address_set_ip4()
static void ip46_address_set_ip4 |
( |
ip46_address_t * |
ip46, |
|
|
const ip4_address_t * |
ip |
|
) |
| |
|
inlinestatic |
◆ ip46_address_set_ip6()
◆ ip4_address_increment()
◆ ip4_address_is_equal()
◆ ip6_address_increment()
void ip6_address_increment |
( |
ip6_address_t * |
i | ) |
|
◆ to_ip46()
static ip46_address_t to_ip46 |
( |
u32 |
is_ipv6, |
|
|
u8 * |
buf |
|
) |
| |
|
inlinestatic |
◆ format_ip46_address