FD.io VPP  v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
nat64_cli.c File Reference

NAT64 CLI. More...

+ Include dependency graph for nat64_cli.c:

Go to the source code of this file.

Data Structures

struct  nat64_cli_st_walk_ctx_t_
 

Typedefs

typedef struct nat64_cli_st_walk_ctx_t_ nat64_cli_st_walk_ctx_t
 

Functions

static clib_error_tnat64_add_del_pool_addr_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int nat64_cli_pool_walk (snat_address_t *ap, void *ctx)
 
static clib_error_tnat64_show_pool_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat64_interface_feature_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int nat64_cli_interface_walk (snat_interface_t *i, void *ctx)
 
static clib_error_tnat64_show_interfaces_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat64_add_del_static_bib_command_fn (vlib_main_t *vm, unformat_input_t()*input, vlib_cli_command_t *cmd)
 
static int nat64_cli_bib_walk (nat64_db_bib_entry_t *bibe, void *ctx)
 
static clib_error_tnat64_show_bib_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat64_set_timeouts_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat64_show_timeouts_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int nat64_cli_st_walk (nat64_db_st_entry_t *ste, void *arg)
 
static clib_error_tnat64_show_st_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat64_add_del_prefix_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int nat64_cli_prefix_walk (nat64_prefix_t *p, void *ctx)
 
static clib_error_tnat64_show_prefix_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnat64_add_interface_address_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t nat64_add_pool_address_command
 (constructor) VLIB_CLI_COMMAND (nat64_add_pool_address_command) More...
 
static vlib_cli_command_t show_nat64_pool_command
 (constructor) VLIB_CLI_COMMAND (show_nat64_pool_command) More...
 
static vlib_cli_command_t set_interface_nat64_command
 (constructor) VLIB_CLI_COMMAND (set_interface_nat64_command) More...
 
static vlib_cli_command_t show_nat64_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_nat64_interfaces_command) More...
 
static vlib_cli_command_t nat64_add_del_static_bib_command
 (constructor) VLIB_CLI_COMMAND (nat64_add_del_static_bib_command) More...
 
static vlib_cli_command_t show_nat64_bib_command
 (constructor) VLIB_CLI_COMMAND (show_nat64_bib_command) More...
 
static vlib_cli_command_t set_nat64_timeouts_command
 (constructor) VLIB_CLI_COMMAND (set_nat64_timeouts_command) More...
 
static vlib_cli_command_t show_nat64_timeouts_command
 (constructor) VLIB_CLI_COMMAND (show_nat64_timeouts_command) More...
 
static vlib_cli_command_t show_nat64_st_command
 (constructor) VLIB_CLI_COMMAND (show_nat64_st_command) More...
 
static vlib_cli_command_t nat64_add_del_prefix_command
 (constructor) VLIB_CLI_COMMAND (nat64_add_del_prefix_command) More...
 
static vlib_cli_command_t show_nat64_prefix_command
 (constructor) VLIB_CLI_COMMAND (show_nat64_prefix_command) More...
 
static vlib_cli_command_t nat64_add_interface_address_command
 (constructor) VLIB_CLI_COMMAND (nat64_add_interface_address_command) More...
 

Detailed Description

NAT64 CLI.

Definition in file nat64_cli.c.

Typedef Documentation

Function Documentation

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

Definition at line 26 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 661 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 278 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 786 of file nat64_cli.c.

+ Here is the call graph for this function:

static int nat64_cli_bib_walk ( nat64_db_bib_entry_t *  bibe,
void *  ctx 
)
static

Definition at line 377 of file nat64_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int nat64_cli_interface_walk ( snat_interface_t i,
void *  ctx 
)
static

Definition at line 253 of file nat64_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int nat64_cli_pool_walk ( snat_address_t ap,
void *  ctx 
)
static

Definition at line 104 of file nat64_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int nat64_cli_prefix_walk ( nat64_prefix_t p,
void *  ctx 
)
static

Definition at line 764 of file nat64_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int nat64_cli_st_walk ( nat64_db_st_entry_t *  ste,
void *  arg 
)
static

Definition at line 562 of file nat64_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 139 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 455 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 411 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 267 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 128 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 775 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 613 of file nat64_cli.c.

+ Here is the call graph for this function:

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

Definition at line 539 of file nat64_cli.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t nat64_add_del_prefix_command
static
Initial value:
= {
.path = "nat64 add prefix",
.short_help = "nat64 add prefix <ip6-prefix>/<plen> [tenant-vrf <vrf-id>] "
"[del] [interface <interface]",
}
static clib_error_t * nat64_add_del_prefix_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:661

(constructor) VLIB_CLI_COMMAND (nat64_add_del_prefix_command)

Definition at line 1021 of file nat64_cli.c.

vlib_cli_command_t nat64_add_del_static_bib_command
static
Initial value:
= {
.path = "nat64 add static bib",
.short_help = "nat64 add static bib <ip6-addr> <port> <ip4-addr> <port> "
"tcp|udp|icmp [vfr <table-id>] [del]",
}
static clib_error_t * nat64_add_del_static_bib_command_fn(vlib_main_t *vm, unformat_input_t()*input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:278

(constructor) VLIB_CLI_COMMAND (nat64_add_del_static_bib_command)

Definition at line 914 of file nat64_cli.c.

vlib_cli_command_t nat64_add_interface_address_command
static
Initial value:
= {
.path = "nat64 add interface address",
.short_help = "nat64 add interface address <interface> [del]",
}
static clib_error_t * nat64_add_interface_address_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:786

(constructor) VLIB_CLI_COMMAND (nat64_add_interface_address_command)

Definition at line 1053 of file nat64_cli.c.

vlib_cli_command_t nat64_add_pool_address_command
static
Initial value:
= {
.path = "nat64 add pool address",
.short_help = "nat64 add pool address <ip4-range-start> [- <ip4-range-end>] "
"[tenant-vrf <vrf-id>] [del]",
}
static clib_error_t * nat64_add_del_pool_addr_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:26

(constructor) VLIB_CLI_COMMAND (nat64_add_pool_address_command)

Definition at line 849 of file nat64_cli.c.

vlib_cli_command_t set_interface_nat64_command
static
Initial value:
= {
.path = "set interface nat64",
.short_help = "set interface nat64 in|out <intfc> [del]",
}
static clib_error_t * nat64_interface_feature_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:139

(constructor) VLIB_CLI_COMMAND (set_interface_nat64_command)

Definition at line 882 of file nat64_cli.c.

vlib_cli_command_t set_nat64_timeouts_command
static
Initial value:
= {
.path = "set nat64 timeouts",
.short_help = "set nat64 timeouts udp <sec> icmp <sec> tcp-trans <sec> "
"tcp-est <sec> tcp-incoming-syn <sec> | reset",
}
static clib_error_t * nat64_set_timeouts_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:455

(constructor) VLIB_CLI_COMMAND (set_nat64_timeouts_command)

Definition at line 957 of file nat64_cli.c.

vlib_cli_command_t show_nat64_bib_command
static
Initial value:
= {
.path = "show nat64 bib",
.short_help = "show nat64 bib all|tcp|udp|icmp|unknown",
}
static clib_error_t * nat64_show_bib_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:411

(constructor) VLIB_CLI_COMMAND (show_nat64_bib_command)

Definition at line 941 of file nat64_cli.c.

vlib_cli_command_t show_nat64_interfaces_command
static
Initial value:
= {
.path = "show nat64 interfaces",
.short_help = "show nat64 interfaces",
}
static clib_error_t * nat64_show_interfaces_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:267

(constructor) VLIB_CLI_COMMAND (show_nat64_interfaces_command)

Definition at line 899 of file nat64_cli.c.

vlib_cli_command_t show_nat64_pool_command
static
Initial value:
= {
.path = "show nat64 pool",
.short_help = "show nat64 pool",
}
static clib_error_t * nat64_show_pool_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:128

(constructor) VLIB_CLI_COMMAND (show_nat64_pool_command)

Definition at line 866 of file nat64_cli.c.

vlib_cli_command_t show_nat64_prefix_command
static
Initial value:
= {
.path = "show nat64 prefix",
.short_help = "show nat64 prefix",
}
static clib_error_t * nat64_show_prefix_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:775

(constructor) VLIB_CLI_COMMAND (show_nat64_prefix_command)

Definition at line 1039 of file nat64_cli.c.

vlib_cli_command_t show_nat64_st_command
static
Initial value:
= {
.path = "show nat64 session table",
.short_help = "show nat64 session table all|tcp|udp|icmp|unknown",
}
static clib_error_t * nat64_show_st_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:613

(constructor) VLIB_CLI_COMMAND (show_nat64_st_command)

Definition at line 1005 of file nat64_cli.c.

vlib_cli_command_t show_nat64_timeouts_command
static
Initial value:
= {
.path = "show nat64 timeouts",
.short_help = "show nat64 timeouts",
}
static clib_error_t * nat64_show_timeouts_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:539

(constructor) VLIB_CLI_COMMAND (show_nat64_timeouts_command)

Definition at line 977 of file nat64_cli.c.