FD.io VPP  v18.11-rc0-18-g2a3fb1a
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...
 
struct  vnet_ipsec_gre_add_del_tunnel_args_t
 IPSec-GRE tunnel add/del arguments. More...
 

Macros

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

Enumerations

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

Functions

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...
 

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

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

Definition at line 40 of file ipsec_gre.h.

#define IPSEC_GRE_OUTPUT_NEXT_ESP_ENCRYPT   1

Definition at line 89 of file ipsec_gre.h.

Enumeration Type Documentation

IPSec-GRE errors.

Enumerator
IPSEC_GRE_N_ERROR 

Definition at line 38 of file ipsec_gre.h.

Function Documentation

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

vnet_device_class_t ipsec_gre_device_class
vnet_hw_interface_class_t ipsec_gre_hw_interface_class
vlib_node_registration_t ipsec_gre_input_node

(constructor) VLIB_REGISTER_NODE (ipsec_gre_input_node)

Definition at line 400 of file node.c.

ipsec_gre_main_t ipsec_gre_main

Definition at line 25 of file ipsec_gre.c.