FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
interface.c File Reference

L2-GRE over IPSec tunnel interface. More...

+ Include dependency graph for interface.c:

Go to the source code of this file.

Functions

u8format_ipsec_gre_tunnel (u8 *s, va_list *args)
 
static clib_error_tshow_ipsec_gre_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tipsec_gre_interface_init (vlib_main_t *vm)
 
int vnet_ipsec_gre_add_del_tunnel (vnet_ipsec_gre_add_del_tunnel_args_t *a, u32 *sw_if_indexp)
 Add or delete ipsec-gre tunnel interface. More...
 
static clib_error_tcreate_ipsec_gre_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t show_ipsec_gre_tunnel_command
 (constructor) VLIB_CLI_COMMAND (show_ipsec_gre_tunnel_command) More...
 
static vlib_cli_command_t create_ipsec_gre_tunnel_command
 (constructor) VLIB_CLI_COMMAND (create_ipsec_gre_tunnel_command) More...
 

Detailed Description

L2-GRE over IPSec tunnel interface.

Creates ipsec-gre tunnel interface. Provides a command line interface so humans can interact with VPP.

Definition in file interface.c.

Function Documentation

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

Definition at line 221 of file interface.c.

+ Here is the call graph for this function:

u8* format_ipsec_gre_tunnel ( u8 s,
va_list *  args 
)

Definition at line 34 of file interface.c.

+ Here is the call graph for this function:

clib_error_t* ipsec_gre_interface_init ( vlib_main_t vm)

Definition at line 78 of file interface.c.

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

Definition at line 49 of file interface.c.

+ Here is the call graph for this function:

int vnet_ipsec_gre_add_del_tunnel ( vnet_ipsec_gre_add_del_tunnel_args_t a,
u32 sw_if_indexp 
)

Add or delete ipsec-gre tunnel interface.

Parameters
*avnet_ipsec_gre_add_del_tunnel_args_t - tunnel interface parameters
*sw_if_indexpu32 - software interface index
Returns
int - 0 if success otherwise VNET_API_ERROR_

Definition at line 93 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t create_ipsec_gre_tunnel_command
static
Initial value:
= {
.path = "create ipsec gre tunnel",
.short_help = "create ipsec gre tunnel src <addr> dst <addr> "
"local-sa <id> remote-sa <id> [del]",
}
static clib_error_t * create_ipsec_gre_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface.c:221

(constructor) VLIB_CLI_COMMAND (create_ipsec_gre_tunnel_command)

Definition at line 303 of file interface.c.

vlib_cli_command_t show_ipsec_gre_tunnel_command
static
Initial value:
= {
.path = "show ipsec gre tunnel",
}
static clib_error_t * show_ipsec_gre_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface.c:49

(constructor) VLIB_CLI_COMMAND (show_ipsec_gre_tunnel_command)

Definition at line 70 of file interface.c.