FD.io VPP  v19.01.3-6-g70449b9b9
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 clib_error_tset_ipsec_sa_key_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_ipsec_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_tset_interface_key_command_fn (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 set_ipsec_sa_key_command
 (constructor) VLIB_CLI_COMMAND (set_ipsec_sa_key_command) More...
 
static vlib_cli_command_t show_ipsec_command
 (constructor) VLIB_CLI_COMMAND (show_ipsec_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 set_interface_key_command
 (constructor) VLIB_CLI_COMMAND (set_interface_key_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 855 of file ipsec_cli.c.

◆ create_ipsec_tunnel_command_fn()

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 883 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 1054 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 255 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 72 of file ipsec_cli.c.

+ Here is the call 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 785 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 718 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 202 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ set_interface_key_command_fn()

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

Definition at line 971 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 27 of file ipsec_cli.c.

+ Here is the call graph for this function:

◆ set_ipsec_sa_key_command_fn()

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

Definition at line 389 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 451 of file ipsec_cli.c.

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

(constructor) VLIB_CLI_COMMAND (clear_ipsec_counters_command)

Definition at line 875 of file ipsec_cli.c.

◆ create_ipsec_tunnel_command

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] "
"[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:883

(constructor) VLIB_CLI_COMMAND (create_ipsec_tunnel_command)

Definition at line 961 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> ",
}
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:255

(constructor) VLIB_CLI_COMMAND (ipsec_policy_add_del_command)

Definition at line 380 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]",
}
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:72

(constructor) VLIB_CLI_COMMAND (ipsec_sa_add_del_command)

Definition at line 193 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>",
}
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:785

(constructor) VLIB_CLI_COMMAND (ipsec_select_backend_command)

Definition at line 846 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",
}
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:718

(constructor) VLIB_CLI_COMMAND (ipsec_show_backends_command)

Definition at line 777 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>",
}
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:202

(constructor) VLIB_CLI_COMMAND (ipsec_spd_add_del_command)

Definition at line 245 of file ipsec_cli.c.

◆ set_interface_key_command

vlib_cli_command_t set_interface_key_command
static
Initial value:
= {
.path = "set interface ipsec key",
.short_help =
"set interface ipsec key <int> <local|remote> <crypto|integ> <key type> <key>",
}
static clib_error_t * set_interface_key_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:971

(constructor) VLIB_CLI_COMMAND (set_interface_key_command)

Definition at line 1045 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>",
}
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:27

(constructor) VLIB_CLI_COMMAND (set_interface_spd_command)

Definition at line 63 of file ipsec_cli.c.

◆ set_ipsec_sa_key_command

vlib_cli_command_t set_ipsec_sa_key_command
static
Initial value:
= {
.path = "set ipsec sa",
.short_help =
"set ipsec sa <id> crypto-key <key> integ-key <key>",
}
static clib_error_t * set_ipsec_sa_key_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ipsec_cli.c:389

(constructor) VLIB_CLI_COMMAND (set_ipsec_sa_key_command)

Definition at line 442 of file ipsec_cli.c.

◆ show_ipsec_command

vlib_cli_command_t show_ipsec_command
static
Initial value:
= {
.path = "show ipsec",
.short_help = "show ipsec [backends]",
.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:451

(constructor) VLIB_CLI_COMMAND (show_ipsec_command)

Definition at line 710 of file ipsec_cli.c.