Go to the source code of this file.
|
#define | u8_ptr_add(ptr, index) (((u8 *)ptr) + index) |
|
#define | u16_net_add(u, val) clib_host_to_net_u16(clib_net_to_host_u16(u) + (val)) |
|
|
clib_error_t * | ip_main_init (vlib_main_t *vm) |
|
static ip_protocol_info_t * | ip_get_protocol_info (ip_main_t *im, u32 protocol) |
|
static tcp_udp_port_info_t * | ip_get_tcp_udp_port_info (ip_main_t *im, u32 port) |
|
static ip_csum_t | ip_incremental_checksum_buffer (vlib_main_t *vm, vlib_buffer_t *first_buffer, u32 first_buffer_offset, u32 n_bytes_to_checksum, ip_csum_t sum) |
|
void | ip_del_all_interface_addresses (vlib_main_t *vm, u32 sw_if_index) |
|
void | ip_table_create (fib_protocol_t fproto, u32 table_id, u8 is_api, const u8 *name) |
|
void | ip_table_delete (fib_protocol_t fproto, u32 table_id, u8 is_api) |
|
int | ip_table_bind (fib_protocol_t fproto, u32 sw_if_index, u32 table_id, u8 is_api) |
|
u8 | ip_is_zero (ip46_address_t *ip46_address, u8 is_ip4) |
|
u8 | ip_is_local_host (ip46_address_t *ip46_address, u8 is_ip4) |
|
u8 | ip4_is_local_host (ip4_address_t *ip4_address) |
|
u8 | ip6_is_local_host (ip6_address_t *ip6_address) |
|
u8 | ip_is_local (u32 fib_index, ip46_address_t *ip46_address, u8 is_ip4) |
| Checks that an ip is local to the requested fib. More...
|
|
u8 | ip_interface_has_address (u32 sw_if_index, ip46_address_t *ip, u8 is_ip4) |
|
void | ip_copy (ip46_address_t *dst, ip46_address_t *src, u8 is_ip4) |
|
void | ip_set (ip46_address_t *dst, void *src, u8 is_ip4) |
|
void * | ip_interface_get_first_ip (u32 sw_if_index, u8 is_ip4) |
|
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) |
|
#define u16_net_add |
( |
|
u, |
|
|
|
val |
|
) |
| clib_host_to_net_u16(clib_net_to_host_u16(u) + (val)) |
Definition at line 69 of file ip.h.
#define u8_ptr_add |
( |
|
ptr, |
|
|
|
index |
|
) |
| (((u8 *)ptr) + index) |
Definition at line 68 of file ip.h.
Definition at line 167 of file ip.c.
Definition at line 39 of file ip.c.
Definition at line 206 of file ip.c.
Definition at line 214 of file ip.c.
Definition at line 197 of file ip.c.
Definition at line 177 of file ip.c.
Definition at line 45 of file ip.c.
Definition at line 267 of file ip.c.
Definition at line 244 of file ip.c.
Definition at line 223 of file ip.c.
void ip_copy |
( |
ip46_address_t * |
dst, |
|
|
ip46_address_t * |
src, |
|
|
u8 |
is_ip4 |
|
) |
| |
Definition at line 81 of file ip.c.
void ip_del_all_interface_addresses |
( |
vlib_main_t * |
vm, |
|
|
u32 |
sw_if_index |
|
) |
| |
Definition at line 136 of file ip.h.
Definition at line 145 of file ip.h.
Definition at line 154 of file ip.h.
void* ip_interface_get_first_ip |
( |
u32 |
sw_if_index, |
|
|
u8 |
is_ip4 |
|
) |
| |
Definition at line 134 of file ip.c.
u8 ip_interface_has_address |
( |
u32 |
sw_if_index, |
|
|
ip46_address_t * |
ip, |
|
|
u8 |
is_ip4 |
|
) |
| |
Definition at line 100 of file ip.c.
u8 ip_is_local |
( |
u32 |
fib_index, |
|
|
ip46_address_t * |
ip46_address, |
|
|
u8 |
is_ip4 |
|
) |
| |
Checks that an ip is local to the requested fib.
Definition at line 55 of file ip.c.
u8 ip_is_local_host |
( |
ip46_address_t * |
ip46_address, |
|
|
u8 |
is_ip4 |
|
) |
| |
Definition at line 29 of file ip.c.
u8 ip_is_zero |
( |
ip46_address_t * |
ip46_address, |
|
|
u8 |
is_ip4 |
|
) |
| |
Definition at line 20 of file ip.c.
void ip_set |
( |
ip46_address_t * |
dst, |
|
|
void * |
src, |
|
|
u8 |
is_ip4 |
|
) |
| |
Definition at line 90 of file ip.c.
Initial value:= {
.name = "ip4-inacl",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * ip_inacl_error_strings[]
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip4_inacl_node)
Definition at line 505 of file ip_in_out_acl.c.
Initial value:= {
.name = "ip6-inacl",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * ip_inacl_error_strings[]
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip6_inacl_node)
Definition at line 547 of file ip_in_out_acl.c.