FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
NAT port/address allocation lib. More...
Go to the source code of this file.
Data Structures | |
struct | nat_ip4_pool_addr_s |
struct | nat_ip4_addr_port_s |
struct | nat_ip4_pool_s |
Typedefs | |
typedef struct nat_ip4_pool_addr_s | nat_ip4_pool_addr_t |
typedef struct nat_ip4_addr_port_s | nat_ip4_addr_port_t |
typedef struct nat_ip4_pool_s | nat_ip4_pool_t |
typedef void() | nat_add_del_ip4_pool_addr_cb_t(ip4_address_t addr, u8 is_add, void *opaque) |
typedef int() | nat_alloc_ip4_addr_and_port_cb_t(nat_ip4_pool_t *pool, u32 fib_index, u32 thread_index, u32 nat_thread_index, u16 port_per_thread, u16 protocol, nat_ip4_addr_port_t *out) |
Functions | |
int | nat_add_del_ip4_pool_addr (nat_ip4_pool_t *pool, ip4_address_t addr, u8 is_add) |
int | nat_add_del_ip4_pool_addrs (nat_ip4_pool_t *pool, ip4_address_t addr, u32 count, u8 is_add, void *opaque) |
int | nat_alloc_ip4_addr_and_port_cb_default (nat_ip4_pool_t *pool, u32 fib_index, u32 thread_index, u32 nat_thread_index, u16 port_per_thread, u16 protocol, nat_ip4_addr_port_t *out) |
int | nat_alloc_ip4_addr_and_port (nat_ip4_pool_t *pool, u32 fib_index, u32 thread_index, u32 nat_thread_index, u16 port_per_thread, u16 protocol, nat_ip4_addr_port_t *out) |
int | nat_free_ip4_addr_and_port (nat_ip4_pool_t *pool, u32 thread_index, u16 protocol, nat_ip4_addr_port_t *in) |
NAT port/address allocation lib.
Definition in file alloc.h.
typedef void() nat_add_del_ip4_pool_addr_cb_t(ip4_address_t addr, u8 is_add, void *opaque) |
typedef int() nat_alloc_ip4_addr_and_port_cb_t(nat_ip4_pool_t *pool, u32 fib_index, u32 thread_index, u32 nat_thread_index, u16 port_per_thread, u16 protocol, nat_ip4_addr_port_t *out) |
typedef struct nat_ip4_addr_port_s nat_ip4_addr_port_t |
typedef struct nat_ip4_pool_addr_s nat_ip4_pool_addr_t |
typedef struct nat_ip4_pool_s nat_ip4_pool_t |
int nat_add_del_ip4_pool_addr | ( | nat_ip4_pool_t * | pool, |
ip4_address_t | addr, | ||
u8 | is_add | ||
) |
int nat_add_del_ip4_pool_addrs | ( | nat_ip4_pool_t * | pool, |
ip4_address_t | addr, | ||
u32 | count, | ||
u8 | is_add, | ||
void * | opaque | ||
) |
int nat_alloc_ip4_addr_and_port | ( | nat_ip4_pool_t * | pool, |
u32 | fib_index, | ||
u32 | thread_index, | ||
u32 | nat_thread_index, | ||
u16 | port_per_thread, | ||
u16 | protocol, | ||
nat_ip4_addr_port_t * | out | ||
) |
int nat_alloc_ip4_addr_and_port_cb_default | ( | nat_ip4_pool_t * | pool, |
u32 | fib_index, | ||
u32 | thread_index, | ||
u32 | nat_thread_index, | ||
u16 | port_per_thread, | ||
u16 | protocol, | ||
nat_ip4_addr_port_t * | out | ||
) |
int nat_free_ip4_addr_and_port | ( | nat_ip4_pool_t * | pool, |
u32 | thread_index, | ||
u16 | protocol, | ||
nat_ip4_addr_port_t * | in | ||
) |