FD.io VPP  v20.09-rc2-28-g3c5414029
Vector Packet Processing
cnat_snat.c File Reference
+ Include dependency graph for cnat_snat.c:

Go to the source code of this file.

Functions

static void cnat_compute_prefix_lengths_in_search_order (cnat_snat_pfx_table_t *table, ip_address_family_t af)
 
int cnat_add_snat_prefix (ip_prefix_t *pfx)
 
int cnat_del_snat_prefix (ip_prefix_t *pfx)
 
u8format_cnat_snat_prefix (u8 *s, va_list *args)
 
static clib_error_tcnat_set_snat (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tcnat_snat_exclude (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tcnat_show_snat (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tcnat_snat_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t cnat_set_snat_command
 (constructor) VLIB_CLI_COMMAND (cnat_set_snat_command) More...
 
static vlib_cli_command_t cnat_snat_exclude_command
 (constructor) VLIB_CLI_COMMAND (cnat_snat_exclude_command) More...
 
static vlib_cli_command_t cnat_show_snat_command
 (constructor) VLIB_CLI_COMMAND (cnat_show_snat_command) More...
 

Function Documentation

◆ cnat_add_snat_prefix()

int cnat_add_snat_prefix ( ip_prefix_t pfx)

Definition at line 36 of file cnat_snat.c.

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

◆ cnat_compute_prefix_lengths_in_search_order()

static void cnat_compute_prefix_lengths_in_search_order ( cnat_snat_pfx_table_t table,
ip_address_family_t  af 
)
static

Definition at line 20 of file cnat_snat.c.

+ Here is the caller graph for this function:

◆ cnat_del_snat_prefix()

int cnat_del_snat_prefix ( ip_prefix_t pfx)

Definition at line 67 of file cnat_snat.c.

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

◆ cnat_set_snat()

static clib_error_t* cnat_set_snat ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 119 of file cnat_snat.c.

+ Here is the call graph for this function:

◆ cnat_show_snat()

static clib_error_t* cnat_show_snat ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 206 of file cnat_snat.c.

+ Here is the call graph for this function:

◆ cnat_snat_exclude()

static clib_error_t* cnat_snat_exclude ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 165 of file cnat_snat.c.

+ Here is the call graph for this function:

◆ cnat_snat_init()

static clib_error_t* cnat_snat_init ( vlib_main_t vm)
static

Definition at line 228 of file cnat_snat.c.

+ Here is the call graph for this function:

◆ format_cnat_snat_prefix()

u8* format_cnat_snat_prefix ( u8 s,
va_list *  args 
)

Definition at line 105 of file cnat_snat.c.

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

Variable Documentation

◆ cnat_set_snat_command

vlib_cli_command_t cnat_set_snat_command
static
Initial value:
=
{
.path = "cnat snat with",
.short_help = "cnat snat with [<ip4-address>][<ip6-address>]",
.function = cnat_set_snat,
}
static clib_error_t * cnat_set_snat(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cnat_snat.c:119

(constructor) VLIB_CLI_COMMAND (cnat_set_snat_command)

Definition at line 156 of file cnat_snat.c.

◆ cnat_show_snat_command

vlib_cli_command_t cnat_show_snat_command
static
Initial value:
=
{
.path = "show cnat snat",
.short_help = "show cnat snat",
.function = cnat_show_snat,
}
static clib_error_t * cnat_show_snat(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cnat_snat.c:206

(constructor) VLIB_CLI_COMMAND (cnat_show_snat_command)

Definition at line 219 of file cnat_snat.c.

◆ cnat_snat_exclude_command

vlib_cli_command_t cnat_snat_exclude_command
static
Initial value:
=
{
.path = "cnat snat exclude",
.short_help = "cnat snat exclude [ip]",
.function = cnat_snat_exclude,
}
static clib_error_t * cnat_snat_exclude(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cnat_snat.c:165

(constructor) VLIB_CLI_COMMAND (cnat_snat_exclude_command)

Definition at line 197 of file cnat_snat.c.