FD.io VPP  v19.08-27-gf4dcae4
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)
 
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 void ipsec_tunnel_show_all (vlib_main_t *vm, ipsec_main_t *im)
 
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_tcreate_ipsec_tunnel_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 walk_rc_t ipsec_tun_protect_show_one (index_t itpi, void *ctx)
 
static clib_error_tipsec_tun_protect_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
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)
 

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 create_ipsec_tunnel_command
 (constructor) VLIB_CLI_COMMAND (create_ipsec_tunnel_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...
 

Function Documentation

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 699 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 447 of file ipsec_cli.c.

+ Here is the call graph for this function:

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

Definition at line 718 of file ipsec_cli.c.

+ Here is the call graph for this function:

clib_error_t* ipsec_cli_init ( vlib_main_t vm)

Definition at line 998 of file ipsec_cli.c.

+ Here is the caller graph for this function:

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 226 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 73 of file ipsec_cli.c.

+ Here is the call graph for this function:

static void ipsec_sa_show_all ( vlib_main_t vm,
ipsec_main_t im 
)
static

Definition at line 347 of file ipsec_cli.c.

+ Here is the caller graph for this function:

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 630 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 563 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 173 of file ipsec_cli.c.

+ Here is the call graph for this function:

static void ipsec_spd_bindings_show_all ( vlib_main_t vm,
ipsec_main_t im 
)
static

Definition at line 371 of file ipsec_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ipsec_spd_show_all ( vlib_main_t vm,
ipsec_main_t im 
)
static

Definition at line 359 of file ipsec_cli.c.

+ Here is the caller graph for this function:

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 864 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 946 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 925 of file ipsec_cli.c.

+ Here is the call graph for this function:

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

Definition at line 917 of file ipsec_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ipsec_tunnel_show_all ( vlib_main_t vm,
ipsec_main_t im 
)
static

Definition at line 389 of file ipsec_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 28 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 402 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 424 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 495 of file ipsec_cli.c.

+ Here is the call graph for this function:

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 531 of file ipsec_cli.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t clear_ipsec_counters_command
static
Initial value:
= {
.path = "clear ipsec counters",
.short_help = "clear ipsec counters",
}
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:699

(constructor) VLIB_CLI_COMMAND (clear_ipsec_counters_command)

Definition at line 710 of file ipsec_cli.c.

vlib_cli_command_t clear_ipsec_sa_command
static
Initial value:
= {
.path = "clear ipsec sa",
.short_help = "clear ipsec sa [index]",
}
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:447

(constructor) VLIB_CLI_COMMAND (clear_ipsec_sa_command)

Definition at line 487 of file ipsec_cli.c.

vlib_cli_command_t create_ipsec_tunnel_command
static
Initial value:
= {
.path = "create ipsec tunnel",
.short_help = "create ipsec tunnel local-ip <addr> local-spi <spi> "
"remote-ip <addr> remote-spi <spi> [instance <inst_num>] [udp-encap] [use-esn] [use-anti-replay] "
"[tx-table <table-id>]",
}
static clib_error_t * create_ipsec_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:718

(constructor) VLIB_CLI_COMMAND (create_ipsec_tunnel_command)

Definition at line 854 of file ipsec_cli.c.

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

(constructor) VLIB_CLI_COMMAND (ipsec_policy_add_del_command)

Definition at line 338 of file ipsec_cli.c.

vlib_cli_command_t ipsec_sa_add_del_command
static
Initial value:
= {
.path = "ipsec sa",
.short_help =
"ipsec sa [add|del]",
}
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:73

(constructor) VLIB_CLI_COMMAND (ipsec_sa_add_del_command)

Definition at line 164 of file ipsec_cli.c.

vlib_cli_command_t ipsec_select_backend_command
static
Initial value:
= {
.path = "ipsec select backend",
.short_help = "ipsec select backend <ah|esp> <backend index>",
}
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:630

(constructor) VLIB_CLI_COMMAND (ipsec_select_backend_command)

Definition at line 690 of file ipsec_cli.c.

vlib_cli_command_t ipsec_show_backends_command
static
Initial value:
= {
.path = "show ipsec backends",
.short_help = "show ipsec backends",
}
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:563

(constructor) VLIB_CLI_COMMAND (ipsec_show_backends_command)

Definition at line 622 of file ipsec_cli.c.

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

(constructor) VLIB_CLI_COMMAND (ipsec_spd_add_del_command)

Definition at line 216 of file ipsec_cli.c.

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

Protect tunnel with IPSEC.

(constructor) VLIB_CLI_COMMAND (ipsec_tun_protect_cmd_node)

Definition at line 907 of file ipsec_cli.c.

vlib_cli_command_t ipsec_tun_protect_hash_show_node
static
Initial value:
=
{
.path = "show ipsec protect-hash",
.short_help = "show ipsec protect-hash",
}
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:946

show IPSEC tunnel protection hash tables

(constructor) VLIB_CLI_COMMAND (ipsec_tun_protect_hash_show_node)

Definition at line 989 of file ipsec_cli.c.

vlib_cli_command_t ipsec_tun_protect_show_node
static
Initial value:
=
{
.path = "show ipsec protect",
.short_help = "show ipsec protect",
}
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:925

show IPSEC tunnel protection

(constructor) VLIB_CLI_COMMAND (ipsec_tun_protect_show_node)

Definition at line 937 of file ipsec_cli.c.

vlib_cli_command_t set_interface_spd_command
static
Initial value:
= {
.path = "set interface ipsec spd",
.short_help =
"set interface ipsec spd <int> <id>",
}
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:28

(constructor) VLIB_CLI_COMMAND (set_interface_spd_command)

Definition at line 64 of file ipsec_cli.c.

vlib_cli_command_t show_ipsec_command
static
Initial value:
= {
.path = "show ipsec all",
.short_help = "show ipsec all",
.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)
Definition: ipsec_cli.c:402

(constructor) VLIB_CLI_COMMAND (show_ipsec_command)

Definition at line 416 of file ipsec_cli.c.

vlib_cli_command_t show_ipsec_sa_command
static
Initial value:
= {
.path = "show ipsec sa",
.short_help = "show ipsec sa [index]",
}
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:424

(constructor) VLIB_CLI_COMMAND (show_ipsec_sa_command)

Definition at line 481 of file ipsec_cli.c.

vlib_cli_command_t show_ipsec_spd_command
static
Initial value:
= {
.path = "show ipsec spd",
.short_help = "show ipsec spd [index]",
}
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:495

(constructor) VLIB_CLI_COMMAND (show_ipsec_spd_command)

Definition at line 523 of file ipsec_cli.c.

vlib_cli_command_t show_ipsec_tunnel_command
static
Initial value:
= {
.path = "show ipsec tunnel",
.short_help = "show ipsec tunnel [index]",
}
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:531

(constructor) VLIB_CLI_COMMAND (show_ipsec_tunnel_command)

Definition at line 555 of file ipsec_cli.c.