20 #ifndef __CNAT_PORTS_H__    21 #define __CNAT_PORTS_H__    26 #define PORTS_PER_ADDR 65536     28 #define CNAT_INSTS PLATFORM_CNAT_INSTS     30 #define BITS_PER_INST (PORTS_PER_ADDR)    36 #define MIN_STATIC_PORT_RANGE_FOR_RTSP (9900)   101 #define PORT_PROBE_LIMIT 20   113     return (1664525L*prev + 1013904223L);
   126                   u16                   static_port_range
   127 #ifndef NO_BULK_LOGGING
   141 #ifndef NO_BULK_LOGGING
   156                   u16               static_port_range
   157 #ifndef NO_BULK_LOGGING
   176 #ifndef NO_BULK_LOGGING
   188                   u16               static_port_range);
 
static u16 bit2port(u32 bit)
u32 private_ip_users_count
static u32 randq1(u32 prev)
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_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 nat64_static_port_alloc(cnat_portmap_v2_t *pm, port_alloc_t atype, port_pair_t pair_type, u32 *i_ipv6_address, u16 i_port, u32 *index, u32 *o_ipv4_address, u16 *o_port)
static uword port2bit(u16 port)
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_portmap_dump_v2(cnat_portmap_v2_t *pm, u16 print_limit)
void cnat_port_free_v2(cnat_portmap_v2_t *pm, int index, port_pair_t ptype, u16 base_port, u16 static_port_range)