20 #ifndef included_nat_lib_alloc_h__ 21 #define included_nat_lib_alloc_h__ 30 u8 is_add,
void *opaque);
45 #define _(N, i, n, s) \ 46 u16 busy_##n##_ports; \ 47 u16 * busy_##n##_ports_per_thread; \ 48 uword * busy_##n##_port_bitmap;
int nat_add_del_ip4_pool_addr(nat_ip4_pool_t *pool, ip4_address_t addr, u8 is_add)
vl_api_ip_proto_t protocol
nat_alloc_ip4_addr_and_port_cb_t * alloc_addr_and_port_cb
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)
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)
nat_add_del_ip4_pool_addr_cb_t * add_del_pool_addr_cb
nat_ip4_pool_addr_t * pool_addr
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_free_ip4_addr_and_port(nat_ip4_pool_t *pool, u32 thread_index, u16 protocol, nat_ip4_addr_port_t *in)
void() nat_add_del_ip4_pool_addr_cb_t(ip4_address_t addr, u8 is_add, void *opaque)