FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
cnat_types.c File Reference
+ Include dependency graph for cnat_types.c:

Go to the source code of this file.

Macros

#define cnat_error(n, s)   s,
 

Functions

u8 cnat_resolve_addr (u32 sw_if_index, ip_address_family_t af, ip_address_t *addr)
 
u8 cnat_resolve_ep (cnat_endpoint_t *ep)
 Resolve endpoint address. More...
 
uword unformat_cnat_ep (unformat_input_t *input, va_list *args)
 
uword unformat_cnat_ep_flags (unformat_input_t *input, va_list *args)
 
uword unformat_cnat_ep_tuple (unformat_input_t *input, va_list *args)
 
u8format_cnat_endpoint (u8 *s, va_list *args)
 
static clib_error_tcnat_types_init (vlib_main_t *vm)
 
void cnat_enable_disable_scanner (cnat_scanner_cmd_t event_type)
 Enable/Disable session cleanup. More...
 
void cnat_lazy_init ()
 Lazy initialization when first adding a translation or using snat. More...
 
static clib_error_tcnat_config (vlib_main_t *vm, unformat_input_t *input)
 
cnat_main_tcnat_get_main ()
 

Variables

cnat_main_t cnat_main
 
fib_source_t cnat_fib_source
 
cnat_timestamp_tcnat_timestamps
 
char * cnat_error_strings []
 

Macro Definition Documentation

◆ cnat_error

#define cnat_error (   n,
 
)    s,

Function Documentation

◆ cnat_config()

static clib_error_t* cnat_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 186 of file cnat_types.c.

+ Here is the call graph for this function:

◆ cnat_enable_disable_scanner()

void cnat_enable_disable_scanner ( cnat_scanner_cmd_t  event_type)

Enable/Disable session cleanup.

Definition at line 169 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_get_main()

cnat_main_t* cnat_get_main ( )

Definition at line 247 of file cnat_types.c.

◆ cnat_lazy_init()

void cnat_lazy_init ( )

Lazy initialization when first adding a translation or using snat.

Definition at line 176 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_resolve_addr()

u8 cnat_resolve_addr ( u32  sw_if_index,
ip_address_family_t  af,
ip_address_t addr 
)

Definition at line 29 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_resolve_ep()

u8 cnat_resolve_ep ( cnat_endpoint_t ep)

Resolve endpoint address.

Definition at line 63 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_types_init()

static clib_error_t* cnat_types_init ( vlib_main_t vm)
static

Definition at line 156 of file cnat_types.c.

+ Here is the call graph for this function:

◆ format_cnat_endpoint()

u8* format_cnat_endpoint ( u8 s,
va_list *  args 
)

Definition at line 134 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_cnat_ep()

uword unformat_cnat_ep ( unformat_input_t input,
va_list *  args 
)

Definition at line 73 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_cnat_ep_flags()

uword unformat_cnat_ep_flags ( unformat_input_t input,
va_list *  args 
)

Definition at line 106 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_cnat_ep_tuple()

uword unformat_cnat_ep_tuple ( unformat_input_t input,
va_list *  args 
)

Definition at line 115 of file cnat_types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ cnat_error_strings

char* cnat_error_strings[]
Initial value:
= {
#define cnat_error(n,s)
}

Definition at line 22 of file cnat_types.c.

◆ cnat_fib_source

fib_source_t cnat_fib_source

Definition at line 19 of file cnat_types.c.

◆ cnat_main

cnat_main_t cnat_main

Definition at line 18 of file cnat_types.c.

◆ cnat_timestamps

cnat_timestamp_t* cnat_timestamps

Definition at line 20 of file cnat_types.c.