FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ipsec_cli.c File Reference
+ Include dependency graph for ipsec_cli.c:

Go to the source code of this file.

Functions

static clib_error_tset_interface_spd_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_sa_add_del_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_spd_add_del_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_policy_add_del_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void ipsec_sa_show_all (vlib_main_t *vm, ipsec_main_t *im, u8 detail)
 
static void ipsec_spd_show_all (vlib_main_t *vm, ipsec_main_t *im)
 
static void ipsec_spd_bindings_show_all (vlib_main_t *vm, ipsec_main_t *im)
 
static walk_rc_t ipsec_tun_protect_show_one (index_t itpi, void *ctx)
 
static void ipsec_tunnel_show_all (vlib_main_t *vm)
 
static clib_error_tshow_ipsec_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_ipsec_sa_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_ipsec_sa_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_ipsec_spd_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_ipsec_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_show_backends_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_select_backend_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_ipsec_counters_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_tun_protect_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tipsec_tun_protect_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int ipsec_tun_protect4_hash_show_one (clib_bihash_kv_8_16_t *kv, void *arg)
 
static int ipsec_tun_protect6_hash_show_one (clib_bihash_kv_24_16_t *kv, void *arg)
 
static clib_error_tipsec_tun_protect_hash_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tipsec_cli_init (vlib_main_t *vm)
 
static clib_error_tset_async_mode_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t set_interface_spd_command
 (constructor) VLIB_CLI_COMMAND (set_interface_spd_command) More...
 
static vlib_cli_command_t ipsec_sa_add_del_command
 (constructor) VLIB_CLI_COMMAND (ipsec_sa_add_del_command) More...
 
static vlib_cli_command_t ipsec_spd_add_del_command
 (constructor) VLIB_CLI_COMMAND (ipsec_spd_add_del_command) More...
 
static vlib_cli_command_t ipsec_policy_add_del_command
 (constructor) VLIB_CLI_COMMAND (ipsec_policy_add_del_command) More...
 
static vlib_cli_command_t show_ipsec_command
 (constructor) VLIB_CLI_COMMAND (show_ipsec_command) More...
 
static vlib_cli_command_t show_ipsec_sa_command
 (constructor) VLIB_CLI_COMMAND (show_ipsec_sa_command) More...
 
static vlib_cli_command_t clear_ipsec_sa_command
 (constructor) VLIB_CLI_COMMAND (clear_ipsec_sa_command) More...
 
static vlib_cli_command_t show_ipsec_spd_command
 (constructor) VLIB_CLI_COMMAND (show_ipsec_spd_command) More...
 
static vlib_cli_command_t show_ipsec_tunnel_command
 (constructor) VLIB_CLI_COMMAND (show_ipsec_tunnel_command) More...
 
static vlib_cli_command_t ipsec_show_backends_command
 (constructor) VLIB_CLI_COMMAND (ipsec_show_backends_command) More...
 
static vlib_cli_command_t ipsec_select_backend_command
 (constructor) VLIB_CLI_COMMAND (ipsec_select_backend_command) More...
 
static vlib_cli_command_t clear_ipsec_counters_command
 (constructor) VLIB_CLI_COMMAND (clear_ipsec_counters_command) More...
 
static vlib_cli_command_t ipsec_tun_protect_cmd_node
 Protect tunnel with IPSEC. More...
 
static vlib_cli_command_t ipsec_tun_protect_show_node
 show IPSEC tunnel protection More...
 
static vlib_cli_command_t ipsec_tun_protect_hash_show_node
 show IPSEC tunnel protection hash tables More...
 
static vlib_cli_command_t set_async_mode_command
 (constructor) VLIB_CLI_COMMAND (set_async_mode_command) More...
 

Function Documentation

◆ clear_ipsec_counters_command_fn()

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

Definition at line 756 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ clear_ipsec_sa_command_fn()

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

Definition at line 518 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_cli_init()

clib_error_t* ipsec_cli_init ( vlib_main_t vm)

Definition at line 911 of file ipsec_cli.c.

+ Here is the caller graph for this function:

◆ ipsec_policy_add_del_command_fn()

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

Definition at line 268 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_sa_add_del_command_fn()

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

Definition at line 84 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_sa_show_all()

static void ipsec_sa_show_all ( vlib_main_t vm,
ipsec_main_t im,
u8  detail 
)
static

Definition at line 408 of file ipsec_cli.c.

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

◆ ipsec_select_backend_command_fn()

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

Definition at line 687 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_show_backends_command_fn()

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

Definition at line 620 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_spd_add_del_command_fn()

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

Definition at line 215 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_spd_bindings_show_all()

static void ipsec_spd_bindings_show_all ( vlib_main_t vm,
ipsec_main_t im 
)
static

Definition at line 434 of file ipsec_cli.c.

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

◆ ipsec_spd_show_all()

static void ipsec_spd_show_all ( vlib_main_t vm,
ipsec_main_t im 
)
static

Definition at line 422 of file ipsec_cli.c.

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

◆ ipsec_tun_protect4_hash_show_one()

static int ipsec_tun_protect4_hash_show_one ( clib_bihash_kv_8_16_t kv,
void *  arg 
)
static

Definition at line 855 of file ipsec_cli.c.

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

◆ ipsec_tun_protect6_hash_show_one()

static int ipsec_tun_protect6_hash_show_one ( clib_bihash_kv_24_16_t kv,
void *  arg 
)
static

Definition at line 866 of file ipsec_cli.c.

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

◆ ipsec_tun_protect_cmd()

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

Definition at line 775 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_tun_protect_hash_show()

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

Definition at line 877 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_tun_protect_show()

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

Definition at line 834 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ ipsec_tun_protect_show_one()

static walk_rc_t ipsec_tun_protect_show_one ( index_t  itpi,
void *  ctx 
)
static

Definition at line 452 of file ipsec_cli.c.

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

◆ ipsec_tunnel_show_all()

static void ipsec_tunnel_show_all ( vlib_main_t vm)
static

Definition at line 460 of file ipsec_cli.c.

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

◆ set_async_mode_command_fn()

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

Definition at line 919 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ set_interface_spd_command_fn()

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

Definition at line 29 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ show_ipsec_command_fn()

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

Definition at line 466 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ show_ipsec_sa_command_fn()

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

Definition at line 491 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ show_ipsec_spd_command_fn()

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

Definition at line 566 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ show_ipsec_tunnel_command_fn()

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

Definition at line 602 of file ipsec_cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ clear_ipsec_counters_command

vlib_cli_command_t clear_ipsec_counters_command
static
Initial value:
= {
.path = "clear ipsec counters",
.short_help = "clear ipsec counters",
}

(constructor) VLIB_CLI_COMMAND (clear_ipsec_counters_command)

Definition at line 767 of file ipsec_cli.c.

◆ clear_ipsec_sa_command

vlib_cli_command_t clear_ipsec_sa_command
static
Initial value:
= {
.path = "clear ipsec sa",
.short_help = "clear ipsec sa [index]",
}

(constructor) VLIB_CLI_COMMAND (clear_ipsec_sa_command)

Definition at line 558 of file ipsec_cli.c.

◆ ipsec_policy_add_del_command

vlib_cli_command_t ipsec_policy_add_del_command
static
Initial value:
= {
.path = "ipsec policy",
.short_help =
"ipsec policy [add|del] spd <id> priority <n> ",
}

(constructor) VLIB_CLI_COMMAND (ipsec_policy_add_del_command)

Definition at line 399 of file ipsec_cli.c.

◆ ipsec_sa_add_del_command

vlib_cli_command_t ipsec_sa_add_del_command
static
Initial value:
= {
.path = "ipsec sa",
.short_help =
"ipsec sa [add|del]",
}

(constructor) VLIB_CLI_COMMAND (ipsec_sa_add_del_command)

Definition at line 206 of file ipsec_cli.c.

◆ ipsec_select_backend_command

vlib_cli_command_t ipsec_select_backend_command
static
Initial value:
= {
.path = "ipsec select backend",
.short_help = "ipsec select backend <ah|esp> <backend index>",
}

(constructor) VLIB_CLI_COMMAND (ipsec_select_backend_command)

Definition at line 747 of file ipsec_cli.c.

◆ ipsec_show_backends_command

vlib_cli_command_t ipsec_show_backends_command
static
Initial value:
= {
.path = "show ipsec backends",
.short_help = "show ipsec backends",
}

(constructor) VLIB_CLI_COMMAND (ipsec_show_backends_command)

Definition at line 679 of file ipsec_cli.c.

◆ ipsec_spd_add_del_command

vlib_cli_command_t ipsec_spd_add_del_command
static
Initial value:
= {
.path = "ipsec spd",
.short_help =
"ipsec spd [add|del] <id>",
}

(constructor) VLIB_CLI_COMMAND (ipsec_spd_add_del_command)

Definition at line 258 of file ipsec_cli.c.

◆ ipsec_tun_protect_cmd_node

vlib_cli_command_t ipsec_tun_protect_cmd_node
static
Initial value:
=
{
.path = "ipsec tunnel protect",
.function = ipsec_tun_protect_cmd,
.short_help = "ipsec tunnel protect <interface> input-sa <SA> output-sa <SA> [add|del]",
}

Protect tunnel with IPSEC.

(constructor) VLIB_CLI_COMMAND (ipsec_tun_protect_cmd_node)

Definition at line 823 of file ipsec_cli.c.

◆ ipsec_tun_protect_hash_show_node

vlib_cli_command_t ipsec_tun_protect_hash_show_node
static
Initial value:
=
{
.path = "show ipsec protect-hash",
.short_help = "show ipsec protect-hash",
}

show IPSEC tunnel protection hash tables

(constructor) VLIB_CLI_COMMAND (ipsec_tun_protect_hash_show_node)

Definition at line 902 of file ipsec_cli.c.

◆ ipsec_tun_protect_show_node

vlib_cli_command_t ipsec_tun_protect_show_node
static
Initial value:
=
{
.path = "show ipsec protect",
.short_help = "show ipsec protect",
}

show IPSEC tunnel protection

(constructor) VLIB_CLI_COMMAND (ipsec_tun_protect_show_node)

Definition at line 846 of file ipsec_cli.c.

◆ set_async_mode_command

vlib_cli_command_t set_async_mode_command
static
Initial value:
= {
.path = "set ipsec async mode",
.short_help = "set ipsec async mode on|off",
}

(constructor) VLIB_CLI_COMMAND (set_async_mode_command)

Definition at line 946 of file ipsec_cli.c.

◆ set_interface_spd_command

vlib_cli_command_t set_interface_spd_command
static
Initial value:
= {
.path = "set interface ipsec spd",
.short_help =
"set interface ipsec spd <int> <id>",
}

(constructor) VLIB_CLI_COMMAND (set_interface_spd_command)

Definition at line 75 of file ipsec_cli.c.

◆ show_ipsec_command

vlib_cli_command_t show_ipsec_command
static
Initial value:
= {
.path = "show ipsec all",
.short_help = "show ipsec all",
.function = show_ipsec_command_fn,
}

(constructor) VLIB_CLI_COMMAND (show_ipsec_command)

Definition at line 483 of file ipsec_cli.c.

◆ show_ipsec_sa_command

vlib_cli_command_t show_ipsec_sa_command
static
Initial value:
= {
.path = "show ipsec sa",
.short_help = "show ipsec sa [index]",
}

(constructor) VLIB_CLI_COMMAND (show_ipsec_sa_command)

Definition at line 552 of file ipsec_cli.c.

◆ show_ipsec_spd_command

vlib_cli_command_t show_ipsec_spd_command
static
Initial value:
= {
.path = "show ipsec spd",
.short_help = "show ipsec spd [index]",
}

(constructor) VLIB_CLI_COMMAND (show_ipsec_spd_command)

Definition at line 594 of file ipsec_cli.c.

◆ show_ipsec_tunnel_command

vlib_cli_command_t show_ipsec_tunnel_command
static
Initial value:
= {
.path = "show ipsec tunnel",
.short_help = "show ipsec tunnel",
}

(constructor) VLIB_CLI_COMMAND (show_ipsec_tunnel_command)

Definition at line 612 of file ipsec_cli.c.

show_ipsec_tunnel_command_fn
static clib_error_t * show_ipsec_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:602
ipsec_tun_protect_hash_show
static clib_error_t * ipsec_tun_protect_hash_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:877
clear_ipsec_sa_command_fn
static clib_error_t * clear_ipsec_sa_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:518
ipsec_tun_protect_show
static clib_error_t * ipsec_tun_protect_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:834
show_ipsec_command_fn
static clib_error_t * show_ipsec_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:466
ipsec_sa_add_del_command_fn
static clib_error_t * ipsec_sa_add_del_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:84
show_ipsec_spd_command_fn
static clib_error_t * show_ipsec_spd_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:566
set_async_mode_command_fn
static clib_error_t * set_async_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:919
ipsec_spd_add_del_command_fn
static clib_error_t * ipsec_spd_add_del_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:215
ipsec_select_backend_command_fn
static clib_error_t * ipsec_select_backend_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:687
show_ipsec_sa_command_fn
static clib_error_t * show_ipsec_sa_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:491
ipsec_tun_protect_cmd
static clib_error_t * ipsec_tun_protect_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:775
clear_ipsec_counters_command_fn
static clib_error_t * clear_ipsec_counters_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:756
set_interface_spd_command_fn
static clib_error_t * set_interface_spd_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:29
ipsec_policy_add_del_command_fn
static clib_error_t * ipsec_policy_add_del_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:268
ipsec_show_backends_command_fn
static clib_error_t * ipsec_show_backends_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:620