|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
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
40 #define CNAT_DEFAULT_SNAT_IF_MAP_LEN 4096
42 #define CNAT_DEFAULT_SESSION_MEMORY (1 << 20)
43 #define CNAT_DEFAULT_TRANSLATION_MEMORY (256 << 10)
44 #define CNAT_DEFAULT_SNAT_MEMORY (64 << 20)
47 #define CNAT_DEFAULT_MAGLEV_LEN 1009
51 #define CNAT_FIB_SOURCE_PRIORITY 0x02
54 #define CNAT_TIMESTAMP_INIT_REFCNT 2
56 #define MIN_SRC_PORT ((u16) 0xC000)
176 #define cnat_error(n,s) CNAT_ERROR_##n,
fib_source_t cnat_fib_source
struct cnat_endpoint_t_ cnat_endpoint_t
uword unformat_cnat_ep(unformat_input_t *input, va_list *args)
u8 cnat_resolve_ep(cnat_endpoint_t *ep)
Resolve endpoint address.
uword session_hash_memory
u8 * format_cnat_endpoint(u8 *s, va_list *args)
enum cnat_trk_flag_t_ cnat_trk_flag_t
struct cnat_node_ctx_ cnat_node_ctx_t
u8 cnat_resolve_addr(u32 sw_if_index, ip_address_family_t af, ip_address_t *addr)
struct cnat_main_ cnat_main_t
u32 translation_hash_buckets
void cnat_enable_disable_scanner(cnat_scanner_cmd_t event_type)
Enable/Disable session cleanup.
cnat_main_t * cnat_get_main()
void cnat_lazy_init()
Lazy initialization when first adding a translation or using snat.
enum cnat_scanner_cmd_t_ cnat_scanner_cmd_t
uword translation_hash_memory
char * cnat_error_strings[]
enum fib_source_t_ fib_source_t
The different sources that can create a route.
vl_api_interface_index_t sw_if_index
struct cnat_timestamp_t_ cnat_timestamp_t
uword unformat_cnat_ep_tuple(unformat_input_t *input, va_list *args)
struct cnat_endpoint_tuple_t_ cnat_endpoint_tuple_t
cnat_timestamp_t * cnat_timestamps
enum ip_address_family_t_ ip_address_family_t