Go to the source code of this file.
|
uword | unformat_ip_address_family (unformat_input_t *input, va_list *args) |
|
u8 * | format_ip_address_family (u8 *s, va_list *args) |
|
vnet_link_t | ip_address_family_to_link_type (ip_address_family_t af) |
|
fib_protocol_t | ip_address_family_to_fib_proto (ip_address_family_t af) |
|
ip_address_family_t | ip_address_family_from_fib_proto (fib_protocol_t fp) |
|
u8 * | ip_addr_bytes (ip_address_t *ip) |
|
bool | ip_address_is_zero (const ip_address_t *ip) |
|
int | ip_address_cmp (const ip_address_t *ip1, const ip_address_t *ip2) |
|
void | ip_address_copy (ip_address_t *dst, const ip_address_t *src) |
|
void | ip_address_copy_addr (void *dst, const ip_address_t *src) |
|
void | ip_address_set (ip_address_t *dst, const void *src, u8 version) |
|
u16 | ip_address_size (const ip_address_t *a) |
|
u16 | ip_version_to_size (ip_address_family_t af) |
|
u8 * | format_ip_address (u8 *s, va_list *args) |
|
uword | unformat_ip_address (unformat_input_t *input, va_list *args) |
|
fib_protocol_t | ip_address_to_46 (const ip_address_t *addr, ip46_address_t *a) |
|
void | ip_address_from_46 (const ip46_address_t *a, fib_protocol_t fproto, ip_address_t *addr) |
|
int | ip_prefix_cmp (ip_prefix_t *p1, ip_prefix_t *p2) |
|
void | ip_prefix_normalize (ip_prefix_t *a) |
|
void | ip_address_to_fib_prefix (const ip_address_t *addr, fib_prefix_t *prefix) |
| convert from a LISP address to a FIB prefix More...
|
|
void | ip_prefix_to_fib_prefix (const ip_prefix_t *ipp, fib_prefix_t *fibp) |
| convert from a LISP to a FIB prefix More...
|
|
u8 * | format_ip_prefix (u8 *s, va_list *args) |
|
uword | unformat_ip_prefix (unformat_input_t *input, va_list *args) |
|
bool | ip_prefix_validate (const ip_prefix_t *ip) |
|
void | ip4_address_normalize (ip4_address_t *ip4, u8 preflen) |
|
void | ip6_address_normalize (ip6_address_t *ip6, u8 preflen) |
|
void | ip4_preflen_to_mask (u8 pref_len, ip4_address_t *ip) |
|
u32 | ip4_mask_to_preflen (ip4_address_t *mask) |
|
void | ip4_prefix_max_address_host_order (ip4_address_t *ip, u8 plen, ip4_address_t *res) |
|
void | ip6_prefix_max_address_host_order (ip6_address_t *ip, u8 plen, ip6_address_t *res) |
|
void | ip6_preflen_to_mask (u8 pref_len, ip6_address_t *mask) |
|
u32 | ip6_mask_to_preflen (ip6_address_t *mask) |
|
◆ FOR_EACH_IP_ADDRESS_FAMILY
#define FOR_EACH_IP_ADDRESS_FAMILY |
( |
|
_af | ) |
for (_af = AF_IP4; _af <= AF_IP6; _af++) |
◆ ip_addr_46
#define ip_addr_46 |
( |
|
_a | ) |
(_a)->ip |
◆ ip_addr_v4
#define ip_addr_v4 |
( |
|
_a | ) |
(_a)->ip.ip4 |
◆ ip_addr_v6
#define ip_addr_v6 |
( |
|
_a | ) |
(_a)->ip.ip6 |
◆ ip_addr_version
#define ip_addr_version |
( |
|
_a | ) |
(_a)->version |
◆ IP_ADDRESS_V4_ALL_0S
#define IP_ADDRESS_V4_ALL_0S {.ip.ip4.as_u32 = 0, .version = AF_IP4} |
◆ IP_ADDRESS_V6_ALL_0S
◆ ip_prefix_addr
#define ip_prefix_addr |
( |
|
_a | ) |
(_a)->addr |
◆ ip_prefix_len
#define ip_prefix_len |
( |
|
_a | ) |
(_a)->len |
◆ ip_prefix_v4
◆ ip_prefix_v6
◆ ip_prefix_version
◆ N_AF [1/2]
◆ N_AF [2/2]
◆ u16_net_add
#define u16_net_add |
( |
|
u, |
|
|
|
val |
|
) |
| clib_host_to_net_u16(clib_net_to_host_u16(u) + (val)) |
◆ u8_ptr_add
#define u8_ptr_add |
( |
|
ptr, |
|
|
|
index |
|
) |
| (((u8 *)ptr) + index) |
◆ ip_address_family_t
◆ ip_address_t
◆ ip_prefix_t
◆ ip_address_family_t_
◆ format_ip_address()
u8* format_ip_address |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_ip_address_family()
u8* format_ip_address_family |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
Definition at line 100 of file ip.c.
◆ format_ip_prefix()
u8* format_ip_prefix |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ ip4_address_normalize()
◆ ip4_mask_to_preflen()
◆ ip4_prefix_max_address_host_order()
◆ ip4_preflen_to_mask()
◆ ip6_address_normalize()
void ip6_address_normalize |
( |
ip6_address_t * |
ip6, |
|
|
u8 |
preflen |
|
) |
| |
◆ ip6_mask_to_preflen()
u32 ip6_mask_to_preflen |
( |
ip6_address_t * |
mask | ) |
|
◆ ip6_prefix_max_address_host_order()
void ip6_prefix_max_address_host_order |
( |
ip6_address_t * |
ip, |
|
|
u8 |
plen, |
|
|
ip6_address_t * |
res |
|
) |
| |
◆ ip6_preflen_to_mask()
void ip6_preflen_to_mask |
( |
u8 |
pref_len, |
|
|
ip6_address_t * |
mask |
|
) |
| |
◆ ip_addr_bytes()
◆ ip_address_cmp()
◆ ip_address_copy()
◆ ip_address_copy_addr()
void ip_address_copy_addr |
( |
void * |
dst, |
|
|
const ip_address_t * |
src |
|
) |
| |
◆ ip_address_family_from_fib_proto()
◆ ip_address_family_to_fib_proto()
◆ ip_address_family_to_link_type()
◆ ip_address_from_46()
◆ ip_address_is_zero()
◆ ip_address_set()
void ip_address_set |
( |
ip_address_t * |
dst, |
|
|
const void * |
src, |
|
|
u8 |
version |
|
) |
| |
◆ ip_address_size()
◆ ip_address_to_46()
◆ ip_address_to_fib_prefix()
convert from a LISP address to a FIB prefix
Definition at line 130 of file control.c.
◆ ip_prefix_cmp()
◆ ip_prefix_normalize()
◆ ip_prefix_to_fib_prefix()
convert from a LISP to a FIB prefix
Definition at line 154 of file control.c.
◆ ip_prefix_validate()
◆ ip_version_to_size()
◆ unformat_ip_address()
◆ unformat_ip_address_family()
Definition at line 116 of file ip.c.
◆ unformat_ip_prefix()