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

Go to the source code of this file.

Functions

u8format_ikev2_id_type_and_data (u8 *s, va_list *args)
 
static u8format_ikev2_traffic_selector (u8 *s, va_list *va)
 
static u8format_ikev2_child_sa (u8 *s, va_list *va)
 
static u8format_ikev2_sa (u8 *s, va_list *va)
 
static clib_error_tshow_ikev2_sa_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tikev2_disable_dpd_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static uword unformat_ikev2_token (unformat_input_t *input, va_list *va)
 
static clib_error_tikev2_profile_add_del_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_ikev2_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_ikev2_liveness_period_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_ikev2_local_key_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tikev2_initiate_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void ikev2_cli_reference (void)
 
static clib_error_tikev2_set_log_level_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t show_ikev2_sa_command
 (constructor) VLIB_CLI_COMMAND (show_ikev2_sa_command) More...
 
static vlib_cli_command_t ikev2_cli_disable_dpd_command
 (constructor) VLIB_CLI_COMMAND (ikev2_cli_disable_dpd_command) More...
 
static vlib_cli_command_t ikev2_profile_add_del_command
 (constructor) VLIB_CLI_COMMAND (ikev2_profile_add_del_command) More...
 
static vlib_cli_command_t show_ikev2_profile_command
 (constructor) VLIB_CLI_COMMAND (show_ikev2_profile_command) More...
 
static vlib_cli_command_t set_ikev2_liveness_command
 (constructor) VLIB_CLI_COMMAND (set_ikev2_liveness_command) More...
 
static vlib_cli_command_t set_ikev2_local_key_command
 (constructor) VLIB_CLI_COMMAND (set_ikev2_local_key_command) More...
 
static vlib_cli_command_t ikev2_initiate_command
 (constructor) VLIB_CLI_COMMAND (ikev2_initiate_command) More...
 
static vlib_cli_command_t ikev2_set_log_level_command
 (constructor) VLIB_CLI_COMMAND (ikev2_set_log_level_command) More...
 

Function Documentation

◆ format_ikev2_child_sa()

static u8* format_ikev2_child_sa ( u8 s,
va_list *  va 
)
static

Definition at line 70 of file ikev2_cli.c.

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

◆ format_ikev2_id_type_and_data()

u8* format_ikev2_id_type_and_data ( u8 s,
va_list *  args 
)

Definition at line 23 of file ikev2_cli.c.

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

◆ format_ikev2_sa()

static u8* format_ikev2_sa ( u8 s,
va_list *  va 
)
static

Definition at line 125 of file ikev2_cli.c.

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

◆ format_ikev2_traffic_selector()

static u8* format_ikev2_traffic_selector ( u8 s,
va_list *  va 
)
static

Definition at line 54 of file ikev2_cli.c.

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

◆ ikev2_cli_reference()

void ikev2_cli_reference ( void  )

Definition at line 809 of file ikev2_cli.c.

+ Here is the caller graph for this function:

◆ ikev2_disable_dpd_command_fn()

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

Definition at line 265 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ ikev2_initiate_command_fn()

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

Definition at line 749 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ ikev2_profile_add_del_command_fn()

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

Definition at line 299 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ ikev2_set_log_level_command_fn()

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

Definition at line 814 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ set_ikev2_liveness_period_fn()

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

Definition at line 668 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ set_ikev2_local_key_command_fn()

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

Definition at line 707 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ show_ikev2_profile_command_fn()

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

Definition at line 580 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ show_ikev2_sa_command_fn()

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

Definition at line 206 of file ikev2_cli.c.

+ Here is the call graph for this function:

◆ unformat_ikev2_token()

static uword unformat_ikev2_token ( unformat_input_t input,
va_list *  va 
)
static

Definition at line 282 of file ikev2_cli.c.

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

Variable Documentation

◆ ikev2_cli_disable_dpd_command

vlib_cli_command_t ikev2_cli_disable_dpd_command
static
Initial value:
= {
.path = "ikev2 dpd disable",
.short_help = "ikev2 dpd disable",
}

(constructor) VLIB_CLI_COMMAND (ikev2_cli_disable_dpd_command)

Definition at line 274 of file ikev2_cli.c.

◆ ikev2_initiate_command

vlib_cli_command_t ikev2_initiate_command
static
Initial value:
= {
.path = "ikev2 initiate",
.short_help =
"ikev2 initiate sa-init <profile id>\n"
"ikev2 initiate del-child-sa <child sa ispi>\n"
"ikev2 initiate del-sa <sa ispi>\n"
"ikev2 initiate rekey-child-sa <child sa ispi>\n",
}

(constructor) VLIB_CLI_COMMAND (ikev2_initiate_command)

Definition at line 797 of file ikev2_cli.c.

◆ ikev2_profile_add_del_command

vlib_cli_command_t ikev2_profile_add_del_command
static
Initial value:
= {
.path = "ikev2 profile",
.short_help =
"ikev2 profile [add|del] <id>\n"
"ikev2 profile set <id> auth [rsa-sig|shared-key-mic] [cert-file|string|hex]"
" <data>\n"
"ikev2 profile set <id> id <local|remote> <type> <data>\n"
"ikev2 profile set <id> tunnel <interface>\n"
"ikev2 profile set <id> udp-encap\n"
"ikev2 profile set <id> traffic-selector <local|remote> ip-range "
"<start-addr> - <end-addr> port-range <start-port> - <end-port> "
"protocol <protocol-number>\n"
"ikev2 profile set <id> responder <interface> <addr>\n"
"ikev2 profile set <id> ike-crypto-alg <crypto alg> <key size> ike-integ-alg <integ alg> ike-dh <dh type>\n"
"ikev2 profile set <id> esp-crypto-alg <crypto alg> <key size> "
"[esp-integ-alg <integ alg>]\n"
"ikev2 profile set <id> sa-lifetime <seconds> <jitter> <handover> <max bytes>"
"ikev2 profile set <id> disable natt\n",
}

(constructor) VLIB_CLI_COMMAND (ikev2_profile_add_del_command)

Definition at line 557 of file ikev2_cli.c.

◆ ikev2_set_log_level_command

vlib_cli_command_t ikev2_set_log_level_command
static
Initial value:
= {
.path = "ikev2 set logging level",
.short_help = "ikev2 set logging level <0-5>",
}

(constructor) VLIB_CLI_COMMAND (ikev2_set_log_level_command)

Definition at line 842 of file ikev2_cli.c.

◆ set_ikev2_liveness_command

vlib_cli_command_t set_ikev2_liveness_command
static
Initial value:
= {
.path = "ikev2 set liveness",
.short_help = "ikev2 set liveness <period> <max-retires>",
}

(constructor) VLIB_CLI_COMMAND (set_ikev2_liveness_command)

Definition at line 699 of file ikev2_cli.c.

◆ set_ikev2_local_key_command

vlib_cli_command_t set_ikev2_local_key_command
static
Initial value:
= {
.path = "set ikev2 local key",
.short_help =
"set ikev2 local key <file>",
}

(constructor) VLIB_CLI_COMMAND (set_ikev2_local_key_command)

Definition at line 739 of file ikev2_cli.c.

◆ show_ikev2_profile_command

vlib_cli_command_t show_ikev2_profile_command
static
Initial value:
= {
.path = "show ikev2 profile",
.short_help = "show ikev2 profile",
}

(constructor) VLIB_CLI_COMMAND (show_ikev2_profile_command)

Definition at line 660 of file ikev2_cli.c.

◆ show_ikev2_sa_command

vlib_cli_command_t show_ikev2_sa_command
static
Initial value:
= {
.path = "show ikev2 sa",
.short_help = "show ikev2 sa [rspi <rspi>] [details]",
}

(constructor) VLIB_CLI_COMMAND (show_ikev2_sa_command)

Definition at line 257 of file ikev2_cli.c.

ikev2_initiate_command_fn
static clib_error_t * ikev2_initiate_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:749
ikev2_disable_dpd_command_fn
static clib_error_t * ikev2_disable_dpd_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:265
set_ikev2_local_key_command_fn
static clib_error_t * set_ikev2_local_key_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:707
show_ikev2_profile_command_fn
static clib_error_t * show_ikev2_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:580
set_ikev2_liveness_period_fn
static clib_error_t * set_ikev2_liveness_period_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:668
show_ikev2_sa_command_fn
static clib_error_t * show_ikev2_sa_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:206
ikev2_set_log_level_command_fn
static clib_error_t * ikev2_set_log_level_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:814
ikev2_profile_add_del_command_fn
static clib_error_t * ikev2_profile_add_del_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ikev2_cli.c:299