Go to the source code of this file.
|
void | cnat_db_dump_portmap_for_vrf (u32 vrfmap_index) |
|
void | cnat_db_dump_portmaps () |
|
static int | check_if_stat_alloc_ok_for_bulk (cnat_portmap_v2_t *pm, u16 i_port, bulk_alloc_size_t bulk_size, u16 static_port_range) |
|
cnat_errno_t | cnat_static_port_alloc_v2 (cnat_portmap_v2_t *pm, port_alloc_t atype, port_pair_t pair_type, u32 i_ipv4_address, u16 i_port, u32 *index, u32 *o_ipv4_address, u16 *o_port, u16 static_port_range, bulk_alloc_size_t bulk_size, int *nfv9_log_req, u16 ip_n_to_1) |
|
cnat_portmap_v2_t * | cnat_dynamic_addr_alloc_from_pm (cnat_portmap_v2_t *pm, port_alloc_t atype, u32 *index, cnat_errno_t *err, u16 ip_n_to_1, u32 *rseed_ip) |
|
cnat_errno_t | cnat_dynamic_port_alloc_v2 (cnat_portmap_v2_t *pm, port_alloc_t atype, port_pair_t pair_type, u32 *index, u32 *o_ipv4_address, u16 *o_port, u16 static_port_range, bulk_alloc_size_t bulk_size, int *nfv9_log_req, u16 ip_n_to_1, u32 *rseed_ip) |
|
cnat_errno_t | cnat_dynamic_port_alloc_rtsp (cnat_portmap_v2_t *pm, port_alloc_t atype, port_pair_t pair_type, u16 start_range, u16 end_range, u32 *index, u32 *o_ipv4_address, u16 *o_port, bulk_alloc_size_t bulk_size, int *nfv9_log_req, u32 *rseed_ip) |
|
cnat_errno_t | cnat_mapped_static_port_alloc_v2 (cnat_portmap_v2_t *pm, port_alloc_t atype, u32 *index, u32 ipv4_address, u16 port, int *nfv9_log_req, bulk_alloc_size_t bulk_size, u16 ip_n_to_1) |
|
void | cnat_port_free_v2 (cnat_portmap_v2_t *pm, int index, port_pair_t pair_type, u16 base_port, u16 static_port_range) |
|
void | cnat_portmap_dump_v2 (cnat_portmap_v2_t *pm, u16 print_limit) |
|
clib_error_t * | cnat_ports_init (vlib_main_t *vm) |
|
Value:do { \
fprintf(stderr,(
i8 *)s); \
fputs("\n", stderr); \
} while(0);
Definition at line 39 of file cnat_ports.c.
#define PM_90_PERCENT_USE 58980 |
void cnat_db_dump_portmap_for_vrf |
( |
u32 |
vrfmap_index | ) |
|
void cnat_db_dump_portmaps |
( |
| ) |
|
cnat_errno_t cnat_dynamic_port_alloc_rtsp |
( |
cnat_portmap_v2_t * |
pm, |
|
|
port_alloc_t |
atype, |
|
|
port_pair_t |
pair_type, |
|
|
u16 |
start_range, |
|
|
u16 |
end_range, |
|
|
u32 * |
index, |
|
|
u32 * |
o_ipv4_address, |
|
|
u16 * |
o_port, |
|
|
bulk_alloc_size_t |
bulk_size, |
|
|
int * |
nfv9_log_req, |
|
|
u32 * |
rseed_ip |
|
) |
| |
cnat_errno_t cnat_dynamic_port_alloc_v2 |
( |
cnat_portmap_v2_t * |
pm, |
|
|
port_alloc_t |
atype, |
|
|
port_pair_t |
pair_type, |
|
|
u32 * |
index, |
|
|
u32 * |
o_ipv4_address, |
|
|
u16 * |
o_port, |
|
|
u16 |
static_port_range, |
|
|
bulk_alloc_size_t |
bulk_size, |
|
|
int * |
nfv9_log_req, |
|
|
u16 |
ip_n_to_1, |
|
|
u32 * |
rseed_ip |
|
) |
| |
cnat_errno_t cnat_static_port_alloc_v2 |
( |
cnat_portmap_v2_t * |
pm, |
|
|
port_alloc_t |
atype, |
|
|
port_pair_t |
pair_type, |
|
|
u32 |
i_ipv4_address, |
|
|
u16 |
i_port, |
|
|
u32 * |
index, |
|
|
u32 * |
o_ipv4_address, |
|
|
u16 * |
o_port, |
|
|
u16 |
static_port_range, |
|
|
bulk_alloc_size_t |
bulk_size, |
|
|
int * |
nfv9_log_req, |
|
|
u16 |
ip_n_to_1 |
|
) |
| |
u8 my_instance_number = 0 |