FD.io VPP  v21.01.1
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_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
 
throttle_t cnat_throttle
 
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 178 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 161 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 233 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 168 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 30 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 64 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 145 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 123 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 74 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 107 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 23 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_throttle

throttle_t cnat_throttle

Definition at line 21 of file cnat_types.c.

◆ cnat_timestamps

cnat_timestamp_t* cnat_timestamps

Definition at line 20 of file cnat_types.c.