FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ipsec_gre.h File Reference

L2-GRE over IPSec packet processing. More...

+ Include dependency graph for ipsec_gre.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ipsec_gre_tunnel_t
 IPSec-GRE tunnel parameters. More...
 
struct  ipsec_gre_main_t
 IPSec-GRE state. More...
 

Macros

#define ipsec_gre_error(n, s)   IPSEC_GRE_ERROR_##n,
 
#define IPSEC_GRE_OUTPUT_NEXT_ESP_ENCRYPT   0
 

Enumerations

enum  ipsec_gre_error_t { IPSEC_GRE_N_ERROR }
 IPSec-GRE errors. More...
 

Functions

int vnet_ipsec_gre_tunnel_add_del (const ipsec_gre_tunnel_add_del_args_t *a, u32 *sw_if_indexp)
 Add or delete ipsec-gre tunnel interface. More...
 

Variables

vnet_hw_interface_class_t ipsec_gre_hw_interface_class
 
ipsec_gre_main_t ipsec_gre_main
 
vlib_node_registration_t ipsec_gre_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec_gre_input_node) More...
 
vnet_device_class_t ipsec_gre_device_class
 

Detailed Description

L2-GRE over IPSec packet processing.

Definition in file ipsec_gre.h.

Macro Definition Documentation

◆ ipsec_gre_error

#define ipsec_gre_error (   n,
 
)    IPSEC_GRE_ERROR_##n,

Definition at line 42 of file ipsec_gre.h.

◆ IPSEC_GRE_OUTPUT_NEXT_ESP_ENCRYPT

#define IPSEC_GRE_OUTPUT_NEXT_ESP_ENCRYPT   0

Definition at line 91 of file ipsec_gre.h.

Enumeration Type Documentation

◆ ipsec_gre_error_t

IPSec-GRE errors.

Enumerator
IPSEC_GRE_N_ERROR 

Definition at line 40 of file ipsec_gre.h.

Function Documentation

◆ vnet_ipsec_gre_tunnel_add_del()

int vnet_ipsec_gre_tunnel_add_del ( const ipsec_gre_tunnel_add_del_args_t a,
u32 sw_if_indexp 
)

Add or delete ipsec-gre tunnel interface.

Parameters
*avnet_ipsec_gre_tunnel_add_del_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

◆ ipsec_gre_device_class

vnet_device_class_t ipsec_gre_device_class

◆ ipsec_gre_hw_interface_class

vnet_hw_interface_class_t ipsec_gre_hw_interface_class

◆ ipsec_gre_input_node

vlib_node_registration_t ipsec_gre_input_node

(constructor) VLIB_REGISTER_NODE (ipsec_gre_input_node)

Definition at line 396 of file node.c.

◆ ipsec_gre_main

ipsec_gre_main_t ipsec_gre_main