FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
nat66_cli.c File Reference

NAT66 CLI. More...

+ Include dependency graph for nat66_cli.c:

Go to the source code of this file.

Macros

#define NAT66_EXPECTED_ARGUMENT   "expected required argument(s)"
 
#define NAT66_PLUGIN_DISABLED   "error plugin disabled"
 
#define CHECK_ENABLED()
 

Functions

static clib_error_tnat66_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat66_interface_feature_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int nat66_cli_interface_walk (nat66_interface_t *i, void *ctx)
 
static clib_error_tnat66_show_interfaces_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat66_add_del_static_mapping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int nat66_cli_static_mapping_walk (nat66_static_mapping_t *sm, void *ctx)
 
static clib_error_tnat66_show_static_mappings_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t nat66_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (nat66_enable_disable_command) More...
 
static vlib_cli_command_t set_interface_nat66_command
 (constructor) VLIB_CLI_COMMAND (set_interface_nat66_command) More...
 
static vlib_cli_command_t show_nat66_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_nat66_interfaces_command) More...
 
static vlib_cli_command_t show_nat66_add_del_static_mapping_command
 (constructor) VLIB_CLI_COMMAND (show_nat66_add_del_static_mapping_command) More...
 
static vlib_cli_command_t show_nat66_static_mappings_command
 (constructor) VLIB_CLI_COMMAND (show_nat66_static_mappings_command) More...
 

Detailed Description

NAT66 CLI.

Definition in file nat66_cli.c.

Macro Definition Documentation

◆ CHECK_ENABLED

#define CHECK_ENABLED ( )
Value:
do \
{ \
{ \
} \
} \
while (0)

Definition at line 26 of file nat66_cli.c.

◆ NAT66_EXPECTED_ARGUMENT

#define NAT66_EXPECTED_ARGUMENT   "expected required argument(s)"

Definition at line 23 of file nat66_cli.c.

◆ NAT66_PLUGIN_DISABLED

#define NAT66_PLUGIN_DISABLED   "error plugin disabled"

Definition at line 24 of file nat66_cli.c.

Function Documentation

◆ nat66_add_del_static_mapping_command_fn()

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

Definition at line 241 of file nat66_cli.c.

+ Here is the call graph for this function:

◆ nat66_cli_interface_walk()

static int nat66_cli_interface_walk ( nat66_interface_t i,
void *  ctx 
)
static

Definition at line 220 of file nat66_cli.c.

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

◆ nat66_cli_static_mapping_walk()

static int nat66_cli_static_mapping_walk ( nat66_static_mapping_t sm,
void *  ctx 
)
static

Definition at line 296 of file nat66_cli.c.

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

◆ nat66_enable_disable_command_fn()

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

Definition at line 37 of file nat66_cli.c.

+ Here is the call graph for this function:

◆ nat66_interface_feature_command_fn()

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

Definition at line 105 of file nat66_cli.c.

+ Here is the call graph for this function:

◆ nat66_show_interfaces_command_fn()

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

Definition at line 231 of file nat66_cli.c.

+ Here is the call graph for this function:

◆ nat66_show_static_mappings_command_fn()

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

Definition at line 319 of file nat66_cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ nat66_enable_disable_command

vlib_cli_command_t nat66_enable_disable_command
static
Initial value:
= {
.path = "nat66",
.short_help = "nat66 <enable [outside-vrf <vrf-id>]>|disable",
}

(constructor) VLIB_CLI_COMMAND (nat66_enable_disable_command)

Definition at line 340 of file nat66_cli.c.

◆ set_interface_nat66_command

vlib_cli_command_t set_interface_nat66_command
static
Initial value:
= {
.path = "set interface nat66",
.short_help = "set interface nat66 in|out <intfc> [del]",
}

(constructor) VLIB_CLI_COMMAND (set_interface_nat66_command)

Definition at line 356 of file nat66_cli.c.

◆ show_nat66_add_del_static_mapping_command

vlib_cli_command_t show_nat66_add_del_static_mapping_command
static
Initial value:
= {
.path = "nat66 add static mapping",
.short_help = "nat66 add static mapping local <ip6-addr> external <ip6-addr>"
" [vfr <table-id>] [del]",
}

(constructor) VLIB_CLI_COMMAND (show_nat66_add_del_static_mapping_command)

Definition at line 388 of file nat66_cli.c.

◆ show_nat66_interfaces_command

vlib_cli_command_t show_nat66_interfaces_command
static
Initial value:
= {
.path = "show nat66 interfaces",
.short_help = "show nat66 interfaces",
}

(constructor) VLIB_CLI_COMMAND (show_nat66_interfaces_command)

Definition at line 373 of file nat66_cli.c.

◆ show_nat66_static_mappings_command

vlib_cli_command_t show_nat66_static_mappings_command
static
Initial value:
= {
.path = "show nat66 static mappings",
.short_help = "show nat66 static mappings",
}

(constructor) VLIB_CLI_COMMAND (show_nat66_static_mappings_command)

Definition at line 406 of file nat66_cli.c.

nat66_main_t::enabled
u8 enabled
Definition: nat66.h:78
clib_error_return
#define clib_error_return(e, args...)
Definition: error.h:99
nat66_enable_disable_command_fn
static clib_error_t * nat66_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat66_cli.c:37
nat66_add_del_static_mapping_command_fn
static clib_error_t * nat66_add_del_static_mapping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat66_cli.c:241
PREDICT_FALSE
#define PREDICT_FALSE(x)
Definition: clib.h:124
nat66_interface_feature_command_fn
static clib_error_t * nat66_interface_feature_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat66_cli.c:105
nat66_show_interfaces_command_fn
static clib_error_t * nat66_show_interfaces_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat66_cli.c:231
NAT66_PLUGIN_DISABLED
#define NAT66_PLUGIN_DISABLED
Definition: nat66_cli.c:24
nat66_main
nat66_main_t nat66_main
Definition: nat66.c:25
nat66_show_static_mappings_command_fn
static clib_error_t * nat66_show_static_mappings_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat66_cli.c:319