FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ create_ipsec_gre_tunnel_command_fn()

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 223 of file interface.c.

+ Here is the call graph for this function:

◆ format_ipsec_gre_tunnel()

u8* format_ipsec_gre_tunnel ( u8 s,
va_list *  args 
)

Definition at line 35 of file interface.c.

+ Here is the call graph for this function:

◆ ipsec_gre_interface_init()

clib_error_t* ipsec_gre_interface_init ( vlib_main_t vm)

Definition at line 79 of file interface.c.

◆ show_ipsec_gre_tunnel_command_fn()

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 50 of file interface.c.

+ Here is the call graph for this function:

◆ vnet_ipsec_gre_add_del_tunnel()

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 94 of file interface.c.

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

Variable Documentation

◆ create_ipsec_gre_tunnel_command

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:223

(constructor) VLIB_CLI_COMMAND (create_ipsec_gre_tunnel_command)

Definition at line 305 of file interface.c.

◆ show_ipsec_gre_tunnel_command

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:50

(constructor) VLIB_CLI_COMMAND (show_ipsec_gre_tunnel_command)

Definition at line 71 of file interface.c.