FD.io VPP  v20.05-21-gb1500e9ff
Vector Packet Processing
nat44_cli.c File Reference

NAT44 CLI. More...

+ Include dependency graph for nat44_cli.c:

Go to the source code of this file.

Macros

#define UNSUPPORTED_IN_DET_OR_ED_MODE_STR   "This command is unsupported in deterministic or endpoint dependent mode"
 
#define UNSUPPORTED_IN_DET_OR_NON_ED_MODE_STR   "This command is unsupported in deterministic or non endpoint dependent mode"
 
#define UNSUPPORTED_IN_DET_MODE_STR   "This command is unsupported in deterministic mode"
 
#define SUPPORTED_ONLY_IN_ED_MODE_STR   "This command is supported only in endpoint dependent mode"
 
#define SUPPORTED_ONLY_IN_DET_MODE_STR   "This command is supported only in deterministic mode"
 

Functions

static clib_error_tset_workers_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_show_workers_commnad_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_set_log_level_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_ipfix_logging_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_hash_commnad_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_set_alloc_addr_and_port_alg_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_alloc_addr_and_port_alg_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_set_mss_clamping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_show_mss_clamping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_ha_failover_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_ha_listener_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_show_ha_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_ha_flush_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_ha_resync_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tadd_address_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_summary_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_addresses_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_feature_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_interfaces_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tadd_static_mapping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tadd_identity_mapping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tadd_lb_static_mapping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tadd_lb_backend_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_static_mappings_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_add_interface_address_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_interface_address_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_show_sessions_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_set_session_limit_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_del_user_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_clear_sessions_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_del_session_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_forwarding_set_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_det_map_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_det_show_mappings_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_det_forward_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_det_reverse_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_timeout_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat_show_timeouts_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat44_det_show_sessions_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_det_close_session_out_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnat_det_close_session_in_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t set_workers_command
 (constructor) VLIB_CLI_COMMAND (set_workers_command) More...
 
static vlib_cli_command_t nat_show_workers_command
 (constructor) VLIB_CLI_COMMAND (nat_show_workers_command) More...
 
static vlib_cli_command_t set_timeout_command
 (constructor) VLIB_CLI_COMMAND (set_timeout_command) More...
 
static vlib_cli_command_t nat_show_timeouts_command
 (constructor) VLIB_CLI_COMMAND (nat_show_timeouts_command) More...
 
static vlib_cli_command_t snat_set_log_level_command
 (constructor) VLIB_CLI_COMMAND (snat_set_log_level_command) More...
 
static vlib_cli_command_t snat_ipfix_logging_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (snat_ipfix_logging_enable_disable_command) More...
 
static vlib_cli_command_t nat44_set_alloc_addr_and_port_alg_command
 (constructor) VLIB_CLI_COMMAND (nat44_set_alloc_addr_and_port_alg_command) More...
 
static vlib_cli_command_t nat44_show_alloc_addr_and_port_alg_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_alloc_addr_and_port_alg_command) More...
 
static vlib_cli_command_t nat_set_mss_clamping_command
 (constructor) VLIB_CLI_COMMAND (nat_set_mss_clamping_command) More...
 
static vlib_cli_command_t nat_show_mss_clamping_command
 (constructor) VLIB_CLI_COMMAND (nat_show_mss_clamping_command) More...
 
static vlib_cli_command_t nat_ha_failover_command
 (constructor) VLIB_CLI_COMMAND (nat_ha_failover_command) More...
 
static vlib_cli_command_t nat_ha_listener_command
 (constructor) VLIB_CLI_COMMAND (nat_ha_listener_command) More...
 
static vlib_cli_command_t nat_show_ha_command
 (constructor) VLIB_CLI_COMMAND (nat_show_ha_command) More...
 
static vlib_cli_command_t nat_ha_flush_command
 (constructor) VLIB_CLI_COMMAND (nat_ha_flush_command) More...
 
static vlib_cli_command_t nat_ha_resync_command
 (constructor) VLIB_CLI_COMMAND (nat_ha_resync_command) More...
 
static vlib_cli_command_t nat44_show_hash
 (constructor) VLIB_CLI_COMMAND (nat44_show_hash) More...
 
static vlib_cli_command_t add_address_command
 (constructor) VLIB_CLI_COMMAND (add_address_command) More...
 
static vlib_cli_command_t nat44_show_summary_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_summary_command) More...
 
static vlib_cli_command_t nat44_show_addresses_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_addresses_command) More...
 
static vlib_cli_command_t set_interface_snat_command
 (constructor) VLIB_CLI_COMMAND (set_interface_snat_command) More...
 
static vlib_cli_command_t nat44_show_interfaces_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_interfaces_command) More...
 
static vlib_cli_command_t add_static_mapping_command
 (constructor) VLIB_CLI_COMMAND (add_static_mapping_command) More...
 
static vlib_cli_command_t add_identity_mapping_command
 (constructor) VLIB_CLI_COMMAND (add_identity_mapping_command) More...
 
static vlib_cli_command_t add_lb_static_mapping_command
 (constructor) VLIB_CLI_COMMAND (add_lb_static_mapping_command) More...
 
static vlib_cli_command_t add_lb_backend_command
 (constructor) VLIB_CLI_COMMAND (add_lb_backend_command) More...
 
static vlib_cli_command_t nat44_show_static_mappings_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_static_mappings_command) More...
 
static vlib_cli_command_t snat_add_interface_address_command
 (constructor) VLIB_CLI_COMMAND (snat_add_interface_address_command) More...
 
static vlib_cli_command_t nat44_show_interface_address_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_interface_address_command) More...
 
static vlib_cli_command_t nat44_show_sessions_command
 (constructor) VLIB_CLI_COMMAND (nat44_show_sessions_command) More...
 
static vlib_cli_command_t nat44_set_session_limit_command
 (constructor) VLIB_CLI_COMMAND (nat44_set_session_limit_command) More...
 
static vlib_cli_command_t nat44_del_user_command
 (constructor) VLIB_CLI_COMMAND (nat44_del_user_command) More...
 
static vlib_cli_command_t nat44_clear_sessions_command
 (constructor) VLIB_CLI_COMMAND (nat44_clear_sessions_command) More...
 
static vlib_cli_command_t nat44_del_session_command
 (constructor) VLIB_CLI_COMMAND (nat44_del_session_command) More...
 
static vlib_cli_command_t snat_forwarding_set_command
 (constructor) VLIB_CLI_COMMAND (snat_forwarding_set_command) More...
 
static vlib_cli_command_t snat_det_map_command
 (constructor) VLIB_CLI_COMMAND (snat_det_map_command) More...
 
static vlib_cli_command_t nat44_det_show_mappings_command
 (constructor) VLIB_CLI_COMMAND (nat44_det_show_mappings_command) More...
 
static vlib_cli_command_t snat_det_forward_command
 (constructor) VLIB_CLI_COMMAND (snat_det_forward_command) More...
 
static vlib_cli_command_t snat_det_reverse_command
 (constructor) VLIB_CLI_COMMAND (snat_det_reverse_command) More...
 
static vlib_cli_command_t nat44_det_show_sessions_command
 (constructor) VLIB_CLI_COMMAND (nat44_det_show_sessions_command) More...
 
static vlib_cli_command_t snat_det_close_sesion_out_command
 (constructor) VLIB_CLI_COMMAND (snat_det_close_sesion_out_command) More...
 
static vlib_cli_command_t snat_det_close_session_in_command
 (constructor) VLIB_CLI_COMMAND (snat_det_close_session_in_command) More...
 

Detailed Description

NAT44 CLI.

Definition in file nat44_cli.c.

Macro Definition Documentation

◆ SUPPORTED_ONLY_IN_DET_MODE_STR

#define SUPPORTED_ONLY_IN_DET_MODE_STR   "This command is supported only in deterministic mode"

Definition at line 39 of file nat44_cli.c.

◆ SUPPORTED_ONLY_IN_ED_MODE_STR

#define SUPPORTED_ONLY_IN_ED_MODE_STR   "This command is supported only in endpoint dependent mode"

Definition at line 37 of file nat44_cli.c.

◆ UNSUPPORTED_IN_DET_MODE_STR

#define UNSUPPORTED_IN_DET_MODE_STR   "This command is unsupported in deterministic mode"

Definition at line 35 of file nat44_cli.c.

◆ UNSUPPORTED_IN_DET_OR_ED_MODE_STR

#define UNSUPPORTED_IN_DET_OR_ED_MODE_STR   "This command is unsupported in deterministic or endpoint dependent mode"

Definition at line 31 of file nat44_cli.c.

◆ UNSUPPORTED_IN_DET_OR_NON_ED_MODE_STR

#define UNSUPPORTED_IN_DET_OR_NON_ED_MODE_STR   "This command is unsupported in deterministic or non endpoint dependent mode"

Definition at line 33 of file nat44_cli.c.

Function Documentation

◆ add_address_command_fn()

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

Definition at line 532 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ add_identity_mapping_command_fn()

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

Definition at line 1106 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ add_lb_backend_command_fn()

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

Definition at line 1301 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ add_lb_static_mapping_command_fn()

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

Definition at line 1185 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ add_static_mapping_command_fn()

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

Definition at line 989 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_clear_sessions_command_fn()

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

Definition at line 1660 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_del_session_command_fn()

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

Definition at line 1675 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_del_user_command_fn()

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

Definition at line 1615 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_det_show_mappings_command_fn()

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

Definition at line 1855 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_det_show_sessions_command_fn()

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

Definition at line 2077 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_set_alloc_addr_and_port_alg_command_fn()

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

Definition at line 260 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_set_session_limit_command_fn()

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

Definition at line 1572 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_addresses_command_fn()

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

Definition at line 803 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_alloc_addr_and_port_alg_command_fn()

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

Definition at line 315 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_hash_commnad_fn()

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

Definition at line 212 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_interface_address_command_fn()

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

Definition at line 1474 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_interfaces_command_fn()

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

Definition at line 956 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_sessions_command_fn()

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

Definition at line 1504 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_static_mappings_command_fn()

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

Definition at line 1393 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat44_show_summary_command_fn()

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

Definition at line 640 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_ha_failover_command_fn()

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

Definition at line 395 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_ha_flush_command_fn()

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

Definition at line 512 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_ha_listener_command_fn()

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

Definition at line 435 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_ha_resync_command_fn()

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

Definition at line 520 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_set_mss_clamping_command_fn()

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

Definition at line 345 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_show_ha_command_fn()

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

Definition at line 473 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_show_mss_clamping_command_fn()

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

Definition at line 381 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_show_timeouts_command_fn()

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

Definition at line 2060 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ nat_show_workers_commnad_fn()

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

Definition at line 101 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ set_timeout_command_fn()

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

Definition at line 1984 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ set_workers_command_fn()

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

Definition at line 43 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_add_interface_address_command_fn()

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

Definition at line 1418 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_det_close_session_in_fn()

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

Definition at line 2164 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_det_close_session_out_fn()

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

Definition at line 2105 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_det_forward_command_fn()

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

Definition at line 1884 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_det_map_command_fn()

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

Definition at line 1802 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_det_reverse_command_fn()

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

Definition at line 1931 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_feature_command_fn()

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

Definition at line 846 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_forwarding_set_command_fn()

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

Definition at line 1750 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_ipfix_logging_enable_disable_command_fn()

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

Definition at line 160 of file nat44_cli.c.

+ Here is the call graph for this function:

◆ snat_set_log_level_command_fn()

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

Definition at line 127 of file nat44_cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ add_address_command

vlib_cli_command_t add_address_command
static
Initial value:
= {
.path = "nat44 add address",
.short_help = "nat44 add address <ip4-range-start> [- <ip4-range-end>] "
"[tenant-vrf <vrf-id>] [twice-nat] [del]",
}
static clib_error_t * add_address_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:532

(constructor) VLIB_CLI_COMMAND (add_address_command)

Definition at line 2454 of file nat44_cli.c.

◆ add_identity_mapping_command

vlib_cli_command_t add_identity_mapping_command
static
Initial value:
= {
.path = "nat44 add identity mapping",
.short_help = "nat44 add identity mapping <ip4-addr>|external <interface> "
"[<protocol> <port>] [vrf <table-id>] [del]",
}
static clib_error_t * add_identity_mapping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1106

(constructor) VLIB_CLI_COMMAND (add_identity_mapping_command)

Definition at line 2573 of file nat44_cli.c.

◆ add_lb_backend_command

vlib_cli_command_t add_lb_backend_command
static
Initial value:
= {
.path = "nat44 add load-balancing back-end",
.short_help =
"nat44 add load-balancing back-end protocol tcp|udp "
"external <addr>:<port> local <addr>:<port> [vrf <table-id>] "
"probability <n> [del]",
}
static clib_error_t * add_lb_backend_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1301

(constructor) VLIB_CLI_COMMAND (add_lb_backend_command)

Definition at line 2609 of file nat44_cli.c.

◆ add_lb_static_mapping_command

vlib_cli_command_t add_lb_static_mapping_command
static
Initial value:
= {
.path = "nat44 add load-balancing static mapping",
.short_help =
"nat44 add load-balancing static mapping protocol tcp|udp "
"external <addr>:<port> local <addr>:<port> [vrf <table-id>] "
"probability <n> [twice-nat|self-twice-nat] [out2in-only] "
"[affinity <timeout-seconds>] [del]",
}
static clib_error_t * add_lb_static_mapping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1185

(constructor) VLIB_CLI_COMMAND (add_lb_static_mapping_command)

Definition at line 2590 of file nat44_cli.c.

◆ add_static_mapping_command

vlib_cli_command_t add_static_mapping_command
static
Initial value:
= {
.path = "nat44 add static mapping",
.short_help =
"nat44 add static mapping tcp|udp|icmp local <addr> [<port>] "
"external <addr> [<port>] [vrf <table-id>] [twice-nat|self-twice-nat] "
"[out2in-only] [del]",
}
static clib_error_t * add_static_mapping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:989

(constructor) VLIB_CLI_COMMAND (add_static_mapping_command)

Definition at line 2551 of file nat44_cli.c.

◆ nat44_clear_sessions_command

vlib_cli_command_t nat44_clear_sessions_command
static
Initial value:
= {
.path = "clear nat44 sessions",
.short_help = "clear nat44 sessions",
}
static clib_error_t * nat44_clear_sessions_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1660

(constructor) VLIB_CLI_COMMAND (nat44_clear_sessions_command)

Definition at line 2714 of file nat44_cli.c.

◆ nat44_del_session_command

vlib_cli_command_t nat44_del_session_command
static
Initial value:
= {
.path = "nat44 del session",
.short_help = "nat44 del session in|out <addr>:<port> tcp|udp|icmp [vrf <id>] [external-host <addr>:<port>]",
}
static clib_error_t * nat44_del_session_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1675

(constructor) VLIB_CLI_COMMAND (nat44_del_session_command)

Definition at line 2729 of file nat44_cli.c.

◆ nat44_del_user_command

vlib_cli_command_t nat44_del_user_command
static
Initial value:
= {
.path = "nat44 del user",
.short_help = "nat44 del user <addr> [fib <index>]",
}
static clib_error_t * nat44_del_user_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1615

(constructor) VLIB_CLI_COMMAND (nat44_del_user_command)

Definition at line 2701 of file nat44_cli.c.

◆ nat44_det_show_mappings_command

vlib_cli_command_t nat44_det_show_mappings_command
static
Initial value:
= {
.path = "show nat44 deterministic mappings",
.short_help = "show nat44 deterministic mappings",
}
static clib_error_t * nat44_det_show_mappings_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1855

(constructor) VLIB_CLI_COMMAND (nat44_det_show_mappings_command)

Definition at line 2782 of file nat44_cli.c.

◆ nat44_det_show_sessions_command

vlib_cli_command_t nat44_det_show_sessions_command
static
Initial value:
= {
.path = "show nat44 deterministic sessions",
.short_help = "show nat44 deterministic sessions",
}
static clib_error_t * nat44_det_show_sessions_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:2077

(constructor) VLIB_CLI_COMMAND (nat44_det_show_sessions_command)

Definition at line 2830 of file nat44_cli.c.

◆ nat44_set_alloc_addr_and_port_alg_command

vlib_cli_command_t nat44_set_alloc_addr_and_port_alg_command
static
Initial value:
= {
.path = "nat addr-port-assignment-alg",
.short_help = "nat addr-port-assignment-alg <alg-name> [<alg-params>]",
}
static clib_error_t * nat44_set_alloc_addr_and_port_alg_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:260

(constructor) VLIB_CLI_COMMAND (nat44_set_alloc_addr_and_port_alg_command)

Definition at line 2325 of file nat44_cli.c.

◆ nat44_set_session_limit_command

vlib_cli_command_t nat44_set_session_limit_command
static
Initial value:
= {
.path = "set nat44 session limit",
.short_help = "set nat44 session limit <limit> [vrf <table-id>]",
}
static clib_error_t * nat44_set_session_limit_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1572

(constructor) VLIB_CLI_COMMAND (nat44_set_session_limit_command)

Definition at line 2688 of file nat44_cli.c.

◆ nat44_show_addresses_command

vlib_cli_command_t nat44_show_addresses_command
static
Initial value:
= {
.path = "show nat44 addresses",
.short_help = "show nat44 addresses",
}
static clib_error_t * nat44_show_addresses_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:803

(constructor) VLIB_CLI_COMMAND (nat44_show_addresses_command)

Definition at line 2498 of file nat44_cli.c.

◆ nat44_show_alloc_addr_and_port_alg_command

vlib_cli_command_t nat44_show_alloc_addr_and_port_alg_command
static
Initial value:
= {
.path = "show nat addr-port-assignment-alg",
.short_help = "show nat addr-port-assignment-alg",
}
static clib_error_t * nat44_show_alloc_addr_and_port_alg_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:315

(constructor) VLIB_CLI_COMMAND (nat44_show_alloc_addr_and_port_alg_command)

Definition at line 2337 of file nat44_cli.c.

◆ nat44_show_hash

vlib_cli_command_t nat44_show_hash
static
Initial value:
= {
.path = "show nat44 hash tables",
.short_help = "show nat44 hash tables [detail|verbose]",
}
static clib_error_t * nat44_show_hash_commnad_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:212

(constructor) VLIB_CLI_COMMAND (nat44_show_hash)

Definition at line 2437 of file nat44_cli.c.

◆ nat44_show_interface_address_command

vlib_cli_command_t nat44_show_interface_address_command
static
Initial value:
= {
.path = "show nat44 interface address",
.short_help = "show nat44 interface address",
}
static clib_error_t * nat44_show_interface_address_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1474

(constructor) VLIB_CLI_COMMAND (nat44_show_interface_address_command)

Definition at line 2664 of file nat44_cli.c.

◆ nat44_show_interfaces_command

vlib_cli_command_t nat44_show_interfaces_command
static
Initial value:
= {
.path = "show nat44 interfaces",
.short_help = "show nat44 interfaces",
}
static clib_error_t * nat44_show_interfaces_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:956

(constructor) VLIB_CLI_COMMAND (nat44_show_interfaces_command)

Definition at line 2531 of file nat44_cli.c.

◆ nat44_show_sessions_command

vlib_cli_command_t nat44_show_sessions_command
static
Initial value:
= {
.path = "show nat44 sessions",
.short_help = "show nat44 sessions [detail|metrics]",
}
static clib_error_t * nat44_show_sessions_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1504

(constructor) VLIB_CLI_COMMAND (nat44_show_sessions_command)

Definition at line 2676 of file nat44_cli.c.

◆ nat44_show_static_mappings_command

vlib_cli_command_t nat44_show_static_mappings_command
static
Initial value:
= {
.path = "show nat44 static mappings",
.short_help = "show nat44 static mappings",
}
static clib_error_t * nat44_show_static_mappings_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1393

(constructor) VLIB_CLI_COMMAND (nat44_show_static_mappings_command)

Definition at line 2633 of file nat44_cli.c.

◆ nat44_show_summary_command

vlib_cli_command_t nat44_show_summary_command
static
Initial value:
= {
.path = "show nat44 summary",
.short_help = "show nat44 summary",
}
static clib_error_t * nat44_show_summary_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:640

(constructor) VLIB_CLI_COMMAND (nat44_show_summary_command)

Definition at line 2468 of file nat44_cli.c.

◆ nat_ha_failover_command

vlib_cli_command_t nat_ha_failover_command
static
Initial value:
= {
.path = "nat ha failover",
.short_help = "nat ha failover <ip4-address>:<port> [refresh-interval <sec>]",
}
static clib_error_t * nat_ha_failover_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:395

(constructor) VLIB_CLI_COMMAND (nat_ha_failover_command)

Definition at line 2377 of file nat44_cli.c.

◆ nat_ha_flush_command

vlib_cli_command_t nat_ha_flush_command
static
Initial value:
= {
.path = "nat ha flush",
.short_help = "nat ha flush",
}
static clib_error_t * nat_ha_flush_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:512

(constructor) VLIB_CLI_COMMAND (nat_ha_flush_command)

Definition at line 2413 of file nat44_cli.c.

◆ nat_ha_listener_command

vlib_cli_command_t nat_ha_listener_command
static
Initial value:
= {
.path = "nat ha listener",
.short_help = "nat ha listener <ip4-address>:<port> [path-mtu <path-mtu>]",
}
static clib_error_t * nat_ha_listener_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:435

(constructor) VLIB_CLI_COMMAND (nat_ha_listener_command)

Definition at line 2389 of file nat44_cli.c.

◆ nat_ha_resync_command

vlib_cli_command_t nat_ha_resync_command
static
Initial value:
= {
.path = "nat ha resync",
.short_help = "nat ha resync",
}
static clib_error_t * nat_ha_resync_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:520

(constructor) VLIB_CLI_COMMAND (nat_ha_resync_command)

Definition at line 2425 of file nat44_cli.c.

◆ nat_set_mss_clamping_command

vlib_cli_command_t nat_set_mss_clamping_command
static
Initial value:
= {
.path = "nat mss-clamping",
.short_help = "nat mss-clamping <mss-value>|disable",
}
static clib_error_t * nat_set_mss_clamping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:345

(constructor) VLIB_CLI_COMMAND (nat_set_mss_clamping_command)

Definition at line 2353 of file nat44_cli.c.

◆ nat_show_ha_command

vlib_cli_command_t nat_show_ha_command
static
Initial value:
= {
.path = "show nat ha",
.short_help = "show nat ha",
}
static clib_error_t * nat_show_ha_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:473

(constructor) VLIB_CLI_COMMAND (nat_show_ha_command)

Definition at line 2401 of file nat44_cli.c.

◆ nat_show_mss_clamping_command

vlib_cli_command_t nat_show_mss_clamping_command
static
Initial value:
= {
.path = "show nat mss-clamping",
.short_help = "show nat mss-clamping",
}
static clib_error_t * nat_show_mss_clamping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:381

(constructor) VLIB_CLI_COMMAND (nat_show_mss_clamping_command)

Definition at line 2365 of file nat44_cli.c.

◆ nat_show_timeouts_command

vlib_cli_command_t nat_show_timeouts_command
static
Initial value:
= {
.path = "show nat timeouts",
.short_help = "show nat timeouts",
}
static clib_error_t * nat_show_timeouts_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:2060

(constructor) VLIB_CLI_COMMAND (nat_show_timeouts_command)

Definition at line 2279 of file nat44_cli.c.

◆ nat_show_workers_command

vlib_cli_command_t nat_show_workers_command
static
Initial value:
= {
.path = "show nat workers",
.short_help = "show nat workers",
}
static clib_error_t * nat_show_workers_commnad_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:101

(constructor) VLIB_CLI_COMMAND (nat_show_workers_command)

Definition at line 2245 of file nat44_cli.c.

◆ set_interface_snat_command

vlib_cli_command_t set_interface_snat_command
static
Initial value:
= {
.path = "set interface nat44",
.short_help = "set interface nat44 in <intfc> out <intfc> [output-feature] "
"[del]",
}
static clib_error_t * snat_feature_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:846

(constructor) VLIB_CLI_COMMAND (set_interface_snat_command)

Definition at line 2514 of file nat44_cli.c.

◆ set_timeout_command

vlib_cli_command_t set_timeout_command
static
Initial value:
= {
.path = "set nat timeout",
.short_help =
"set nat timeout [udp <sec> | tcp-established <sec> "
"tcp-transitory <sec> | icmp <sec> | reset]",
}
static clib_error_t * set_timeout_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1984

(constructor) VLIB_CLI_COMMAND (set_timeout_command)

Definition at line 2260 of file nat44_cli.c.

◆ set_workers_command

vlib_cli_command_t set_workers_command
static
Initial value:
= {
.path = "set nat workers",
.short_help = "set nat workers <workers-list>",
}
static clib_error_t * set_workers_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:43

(constructor) VLIB_CLI_COMMAND (set_workers_command)

Definition at line 2229 of file nat44_cli.c.

◆ snat_add_interface_address_command

vlib_cli_command_t snat_add_interface_address_command
static
Initial value:
= {
.path = "nat44 add interface address",
.short_help = "nat44 add interface address <interface> [twice-nat] [del]",
}
static clib_error_t * snat_add_interface_address_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1418

(constructor) VLIB_CLI_COMMAND (snat_add_interface_address_command)

Definition at line 2647 of file nat44_cli.c.

◆ snat_det_close_sesion_out_command

vlib_cli_command_t snat_det_close_sesion_out_command
static
Initial value:
= {
.path = "nat44 deterministic close session out",
.short_help = "nat44 deterministic close session out "
"<out_addr>:<out_port> <ext_addr>:<ext_port>",
}
static clib_error_t * snat_det_close_session_out_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:2105

(constructor) VLIB_CLI_COMMAND (snat_det_close_sesion_out_command)

Definition at line 2844 of file nat44_cli.c.

◆ snat_det_close_session_in_command

vlib_cli_command_t snat_det_close_session_in_command
static
Initial value:
= {
.path = "nat44 deterministic close session in",
.short_help = "nat44 deterministic close session in "
"<in_addr>:<in_port> <ext_addr>:<ext_port>",
}
static clib_error_t * snat_det_close_session_in_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:2164

(constructor) VLIB_CLI_COMMAND (snat_det_close_session_in_command)

Definition at line 2859 of file nat44_cli.c.

◆ snat_det_forward_command

vlib_cli_command_t snat_det_forward_command
static
Initial value:
= {
.path = "nat44 deterministic forward",
.short_help = "nat44 deterministic forward <addr>",
}
static clib_error_t * snat_det_forward_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1884

(constructor) VLIB_CLI_COMMAND (snat_det_forward_command)

Definition at line 2798 of file nat44_cli.c.

◆ snat_det_map_command

vlib_cli_command_t snat_det_map_command
static
Initial value:
= {
.path = "nat44 deterministic add",
.short_help = "nat44 deterministic add in <addr>/<plen> out <addr>/<plen> [del]",
}
static clib_error_t * snat_det_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1802

(constructor) VLIB_CLI_COMMAND (snat_det_map_command)

Definition at line 2764 of file nat44_cli.c.

◆ snat_det_reverse_command

vlib_cli_command_t snat_det_reverse_command
static
Initial value:
= {
.path = "nat44 deterministic reverse",
.short_help = "nat44 deterministic reverse <addr>:<port>",
}
static clib_error_t * snat_det_reverse_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1931

(constructor) VLIB_CLI_COMMAND (snat_det_reverse_command)

Definition at line 2813 of file nat44_cli.c.

◆ snat_forwarding_set_command

vlib_cli_command_t snat_forwarding_set_command
static
Initial value:
= {
.path = "nat44 forwarding",
.short_help = "nat44 forwarding enable|disable",
}
static clib_error_t * snat_forwarding_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:1750

(constructor) VLIB_CLI_COMMAND (snat_forwarding_set_command)

Definition at line 2747 of file nat44_cli.c.

◆ snat_ipfix_logging_enable_disable_command

vlib_cli_command_t snat_ipfix_logging_enable_disable_command
static
Initial value:
= {
.path = "nat ipfix logging",
.short_help = "nat ipfix logging [domain <domain-id>] [src-port <port>] [disable]",
}
static clib_error_t * snat_ipfix_logging_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:160

(constructor) VLIB_CLI_COMMAND (snat_ipfix_logging_enable_disable_command)

Definition at line 2307 of file nat44_cli.c.

◆ snat_set_log_level_command

vlib_cli_command_t snat_set_log_level_command
static
Initial value:
= {
.path = "nat set logging level",
.short_help = "nat set logging level <level>",
}
static clib_error_t * snat_set_log_level_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat44_cli.c:127

(constructor) VLIB_CLI_COMMAND (snat_set_log_level_command)

Definition at line 2292 of file nat44_cli.c.