FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
nat64_cli.c File Reference
+ Include dependency graph for nat64_cli.c:

Go to the source code of this file.

Data Structures

struct  nat64_cli_st_walk_ctx_t_
 

Macros

#define NAT64_EXPECTED_ARGUMENT   "expected required argument(s)"
 

Typedefs

typedef struct nat64_cli_st_walk_ctx_t_ nat64_cli_st_walk_ctx_t
 

Functions

static clib_error_tnat64_plugin_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
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 (nat64_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 (nat64_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 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_plugin_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (nat64_plugin_enable_disable_command) More...
 
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 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...
 

Macro Definition Documentation

◆ NAT64_EXPECTED_ARGUMENT

#define NAT64_EXPECTED_ARGUMENT   "expected required argument(s)"

Definition at line 19 of file nat64_cli.c.

Typedef Documentation

◆ nat64_cli_st_walk_ctx_t

Function Documentation

◆ nat64_add_del_pool_addr_command_fn()

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 70 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_add_del_prefix_command_fn()

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 604 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_add_del_static_bib_command_fn()

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 322 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_add_interface_address_command_fn()

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 729 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_cli_bib_walk()

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

Definition at line 422 of file nat64_cli.c.

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

◆ nat64_cli_interface_walk()

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

Definition at line 297 of file nat64_cli.c.

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

◆ nat64_cli_pool_walk()

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

Definition at line 148 of file nat64_cli.c.

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

◆ nat64_cli_prefix_walk()

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

Definition at line 707 of file nat64_cli.c.

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

◆ nat64_cli_st_walk()

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

Definition at line 505 of file nat64_cli.c.

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

◆ nat64_interface_feature_command_fn()

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 183 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_plugin_enable_disable_command_fn()

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

Definition at line 22 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_show_bib_command_fn()

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 456 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_show_interfaces_command_fn()

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 311 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_show_pool_command_fn()

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 172 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_show_prefix_command_fn()

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 718 of file nat64_cli.c.

+ Here is the call graph for this function:

◆ nat64_show_st_command_fn()

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 556 of file nat64_cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ nat64_add_del_prefix_command

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]",
}

(constructor) VLIB_CLI_COMMAND (nat64_add_del_prefix_command)

Definition at line 949 of file nat64_cli.c.

◆ nat64_add_del_static_bib_command

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]",
}

(constructor) VLIB_CLI_COMMAND (nat64_add_del_static_bib_command)

Definition at line 878 of file nat64_cli.c.

◆ nat64_add_interface_address_command

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]",
}

(constructor) VLIB_CLI_COMMAND (nat64_add_interface_address_command)

Definition at line 981 of file nat64_cli.c.

◆ nat64_add_pool_address_command

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]",
}

(constructor) VLIB_CLI_COMMAND (nat64_add_pool_address_command)

Definition at line 813 of file nat64_cli.c.

◆ nat64_plugin_enable_disable_command

vlib_cli_command_t nat64_plugin_enable_disable_command
static
Initial value:
=
{
.path = "nat64 plugin",
.short_help = "nat64 plugin <enable "
"[bib-buckets <count>] [bib-memory <size>] "
"[st-buckets <count>] [st-memory <size>] | disable>",
}

(constructor) VLIB_CLI_COMMAND (nat64_plugin_enable_disable_command)

Definition at line 792 of file nat64_cli.c.

◆ set_interface_nat64_command

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

(constructor) VLIB_CLI_COMMAND (set_interface_nat64_command)

Definition at line 846 of file nat64_cli.c.

◆ show_nat64_bib_command

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",
}

(constructor) VLIB_CLI_COMMAND (show_nat64_bib_command)

Definition at line 905 of file nat64_cli.c.

◆ show_nat64_interfaces_command

vlib_cli_command_t show_nat64_interfaces_command
static
Initial value:
= {
.path = "show nat64 interfaces",
.short_help = "show nat64 interfaces",
}

(constructor) VLIB_CLI_COMMAND (show_nat64_interfaces_command)

Definition at line 863 of file nat64_cli.c.

◆ show_nat64_pool_command

vlib_cli_command_t show_nat64_pool_command
static
Initial value:
= {
.path = "show nat64 pool",
.short_help = "show nat64 pool",
}

(constructor) VLIB_CLI_COMMAND (show_nat64_pool_command)

Definition at line 830 of file nat64_cli.c.

◆ show_nat64_prefix_command

vlib_cli_command_t show_nat64_prefix_command
static
Initial value:
= {
.path = "show nat64 prefix",
.short_help = "show nat64 prefix",
}

(constructor) VLIB_CLI_COMMAND (show_nat64_prefix_command)

Definition at line 967 of file nat64_cli.c.

◆ show_nat64_st_command

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",
}

(constructor) VLIB_CLI_COMMAND (show_nat64_st_command)

Definition at line 933 of file nat64_cli.c.

nat64_add_del_prefix_command_fn
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:604
nat64_add_del_pool_addr_command_fn
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:70
nat64_add_interface_address_command_fn
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:729
nat64_show_interfaces_command_fn
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:311
nat64_show_bib_command_fn
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:456
nat64_show_st_command_fn
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:556
nat64_add_del_static_bib_command_fn
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:322
nat64_show_pool_command_fn
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:172
nat64_show_prefix_command_fn
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:718
nat64_interface_feature_command_fn
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:183
nat64_plugin_enable_disable_command_fn
static clib_error_t * nat64_plugin_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nat64_cli.c:22