19 #ifndef __CNAT_CLI_H__ 20 #define __CNAT_CLI_H__ 32 #ifndef NO_BULK_LOGGING 74 CNAT_ERR_DS_LITE_ID_INVALID,
85 #define CNAT_DEBUG_NONE (0) 86 #define CNAT_DEBUG_GLOBAL_ERR (1 << 0) 87 #define CNAT_DEBUG_DROP_TCP (1 << 0) 88 #define CNAT_DEBUG_DROP_UDP (1 << 1) 89 #define CNAT_DEBUG_DROP_ICMP (1 << 2) 90 #define CNAT_DEBUG_ERR_TCP (1 << 3) 91 #define CNAT_DEBUG_ERR_UDP (1 << 4) 92 #define CNAT_DEBUG_ERR_ICMP (1 << 5) 93 #define CNAT_DEBUG_ERR_ALG (1 << 6) 94 #define CNAT_DEBUG_GLOBAL_ALL (1 << 7) 95 #define CNAT_DEBUG_FTP_ALG (1 << 8) 99 #define CNAT_DEBUG_ALL 0x1FF 100 #define CNAT_DEBUG_ERR_ALL 0x38 102 #define CNAT_DB_CLEAR_SPECIFIC (0) 103 #define CNAT_DB_CLEAR_ALL (1 << 0) 104 #define CNAT_DB_CLEAR_VRF (1 << 1) 105 #define CNAT_DB_CLEAR_ADDR (1 << 2) 106 #define CNAT_DB_CLEAR_PROTO (1 << 3) 107 #define CNAT_DB_CLEAR_PORT (1 << 4) 110 #define MAX_UIDX 0x3fff 112 #define ADDR_MASK_PER_CORE PLATFORM_ADDR_MASK_PER_CORE 113 #define ADDR_MASK_PER_CORE_PER_PARTITION \ 114 PLATFORM_ADDR_MASK_PER_CORE_PER_PARTITION 116 #define MAX_CORES PLATFORM_MAX_CORES 117 #define MAX_CORES_PER_PARTITION PLATFORM_MAX_CORES_PER_PARTITION 122 #define CNAT_MAX_ADDR_POOL_SIZE PLATFORM_CNAT_MAX_ADDR_POOL_SIZE 123 #define CNAT_MAX_ADDR_POOL_SIZE_PER_CORE \ 124 (CNAT_MAX_ADDR_POOL_SIZE / MAX_CORES_PER_PARTITION) 126 #define BOUNDARY_VALUE 256 128 #define BOUNDARY_VALUE_MASK 0xff 130 #define NUM_ADDR_IN_RANGE(range, value, instance) \ 131 ((range / value) + ((instance % MAX_CORES_PER_PARTITION) < (range%value) ? 1 : 0)) 168 #define MIN_NFV9_PATH_MTU 100
u32 udp_inside_checksum_disable
void cnat_v4_show_inside_entry_req_t_handler(spp_api_cnat_v4_show_inside_entry_req_t *mp, vlib_main_t *vm)
u32 tcp_logging_enable_flag
void cnat_nat44_set_protocol_timeout_value(u16 active, u16 init, u8 *proto, u8 reset, vlib_main_t *vm)
void cnat_nat44_handle_show_stats(vlib_main_t *vm)
u32 udp_outside_checksum_disable
u32 udp_outside_packet_dump_enable
void cnat_nat44_handle_show_config(vlib_main_t *vm)
struct _spp_api_cnat_v4_add_vrf_map spp_api_cnat_v4_add_vrf_map_t
u32 nfv9_logging_debug_flag
struct _spp_api_cnat_v4_show_inside_entry_req spp_api_cnat_v4_show_inside_entry_req_t
void cnat_nat44_add_vrf_map_t_handler(spp_api_cnat_v4_add_vrf_map_t *mp, vlib_main_t *vm)
u32 summary_stats_debug_flag
cnat_debug_variable_value
u32 udp_inside_packet_dump_enable