16 #ifndef __CNAT_TYPES_H__ 17 #define __CNAT_TYPES_H__ 27 #define CNAT_FIB_TABLE 0 30 #define CNAT_DEFAULT_SESSION_MAX_AGE 30 32 #define CNAT_DEFAULT_TCP_MAX_AGE 3600 34 #define CNAT_DEFAULT_TCP_RST_TIMEOUT 5 35 #define CNAT_DEFAULT_SCANNER_TIMEOUT (1.0) 37 #define CNAT_DEFAULT_SESSION_BUCKETS 1024 38 #define CNAT_DEFAULT_TRANSLATION_BUCKETS 1024 39 #define CNAT_DEFAULT_SNAT_BUCKETS 1024 41 #define CNAT_DEFAULT_SESSION_MEMORY (1 << 20) 42 #define CNAT_DEFAULT_TRANSLATION_MEMORY (256 << 10) 43 #define CNAT_DEFAULT_SNAT_MEMORY (64 << 20) 47 #define CNAT_FIB_SOURCE_PRIORITY 0x02 50 #define CNAT_TIMESTAMP_INIT_REFCNT 2 52 #define MIN_SRC_PORT ((u16) 0xC000) 82 u32 dst_address_length_refcounts[129];
94 ip6_address_t ip_masks[129];
182 #define cnat_error(n,s) CNAT_ERROR_##n,
enum fib_source_t_ fib_source_t
The different sources that can create a route.
enum cnat_scanner_cmd_t_ cnat_scanner_cmd_t
struct cnat_node_ctx_ cnat_node_ctx_t
cnat_timestamp_t * cnat_timestamps
void cnat_enable_disable_scanner(cnat_scanner_cmd_t event_type)
Enable/Disable session cleanup.
u8 cnat_resolve_addr(u32 sw_if_index, ip_address_family_t af, ip_address_t *addr)
clib_bihash_24_8_t ip_hash
struct cnat_main_ cnat_main_t
uword unformat_cnat_ep_tuple(unformat_input_t *input, va_list *args)
uword unformat_cnat_ep(unformat_input_t *input, va_list *args)
A throttle Used in the data plane to decide if a given hash should be throttled, i.e.
char * cnat_error_strings[]
uword session_hash_memory
cnat_main_t * cnat_get_main()
cnat_snat_pfx_table_t snat_pfx_table
enum ip_address_family_t_ ip_address_family_t
u32 translation_hash_buckets
fib_source_t cnat_fib_source
uword translation_hash_memory
u8 * format_cnat_endpoint(u8 *s, va_list *args)
void cnat_lazy_init()
Lazy initialization when first adding a translation or using snat.
struct cnat_timestamp_t_ cnat_timestamp_t
struct cnat_endpoint_tuple_t_ cnat_endpoint_tuple_t
struct cnat_endpoint_t_ cnat_endpoint_t
vl_api_interface_index_t sw_if_index
u8 cnat_resolve_ep(cnat_endpoint_t *ep)
Resolve endpoint address.