FD.io VPP  v21.06-1-gbb7418cf9
Vector Packet Processing
pnat_cli.c File Reference
+ Include dependency graph for pnat_cli.c:

Go to the source code of this file.

Functions

u8format_pnat_match_tuple (u8 *s, va_list *args)
 
u8format_pnat_rewrite_tuple (u8 *s, va_list *args)
 
u8format_pnat_translation (u8 *s, va_list *args)
 
static u8format_pnat_mask (u8 *s, va_list *args)
 
static u8format_pnat_interface (u8 *s, va_list *args)
 
uword unformat_pnat_match_tuple (unformat_input_t *input, va_list *args)
 
uword unformat_pnat_rewrite_tuple (unformat_input_t *input, va_list *args)
 
static clib_error_tset_pnat_translation_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_pnat_translations_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_pnat_interfaces_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t set_pnat_translation_command
 (constructor) VLIB_CLI_COMMAND (set_pnat_translation_command) More...
 
static vlib_cli_command_t show_pnat_translations_command
 (constructor) VLIB_CLI_COMMAND (show_pnat_translations_command) More...
 
static vlib_cli_command_t show_pnat_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_pnat_interfaces_command) More...
 

Function Documentation

◆ format_pnat_interface()

static u8* format_pnat_interface ( u8 s,
va_list *  args 
)
static

Definition at line 103 of file pnat_cli.c.

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

◆ format_pnat_mask()

static u8* format_pnat_mask ( u8 s,
va_list *  args 
)
static

Definition at line 90 of file pnat_cli.c.

+ Here is the caller graph for this function:

◆ format_pnat_match_tuple()

u8* format_pnat_match_tuple ( u8 s,
va_list *  args 
)

Definition at line 29 of file pnat_cli.c.

+ Here is the caller graph for this function:

◆ format_pnat_rewrite_tuple()

u8* format_pnat_rewrite_tuple ( u8 s,
va_list *  args 
)

Definition at line 55 of file pnat_cli.c.

+ Here is the caller graph for this function:

◆ format_pnat_translation()

u8* format_pnat_translation ( u8 s,
va_list *  args 
)

Definition at line 82 of file pnat_cli.c.

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

◆ set_pnat_translation_command_fn()

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

Definition at line 182 of file pnat_cli.c.

+ Here is the call graph for this function:

◆ show_pnat_interfaces_command_fn()

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

Definition at line 321 of file pnat_cli.c.

+ Here is the call graph for this function:

◆ show_pnat_translations_command_fn()

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

Definition at line 301 of file pnat_cli.c.

+ Here is the call graph for this function:

◆ unformat_pnat_match_tuple()

uword unformat_pnat_match_tuple ( unformat_input_t input,
va_list *  args 
)

Definition at line 117 of file pnat_cli.c.

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

◆ unformat_pnat_rewrite_tuple()

uword unformat_pnat_rewrite_tuple ( unformat_input_t input,
va_list *  args 
)

Definition at line 143 of file pnat_cli.c.

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

Variable Documentation

◆ set_pnat_translation_command

vlib_cli_command_t set_pnat_translation_command
static
Initial value:
= {
.path = "set pnat translation",
.short_help = "set pnat translation interface <name> match <5-tuple> "
"rewrite <tuple> {in|out} [del]",
}
static clib_error_t * set_pnat_translation_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: pnat_cli.c:182

(constructor) VLIB_CLI_COMMAND (set_pnat_translation_command)

Definition at line 293 of file pnat_cli.c.

◆ show_pnat_interfaces_command

vlib_cli_command_t show_pnat_interfaces_command
static
Initial value:
= {
.path = "show pnat interfaces",
.short_help = "show pnat interfaces",
}
static clib_error_t * show_pnat_interfaces_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: pnat_cli.c:321

(constructor) VLIB_CLI_COMMAND (show_pnat_interfaces_command)

Definition at line 335 of file pnat_cli.c.

◆ show_pnat_translations_command

vlib_cli_command_t show_pnat_translations_command
static
Initial value:
= {
.path = "show pnat translations",
.short_help = "show pnat translations",
}
static clib_error_t * show_pnat_translations_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: pnat_cli.c:301

(constructor) VLIB_CLI_COMMAND (show_pnat_translations_command)

Definition at line 315 of file pnat_cli.c.