FD.io VPP  v17.01-9-ge7dcee4
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.

Macros

#define ESP_NODE   "esp-encrypt"
 

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.

Macro Definition Documentation

#define ESP_NODE   "esp-encrypt"

Definition at line 36 of 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 229 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 40 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 84 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 55 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 99 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:229

(constructor) VLIB_CLI_COMMAND (create_ipsec_gre_tunnel_command)

Definition at line 297 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:55

(constructor) VLIB_CLI_COMMAND (show_ipsec_gre_tunnel_command)

Definition at line 76 of file interface.c.