FD.io VPP
v18.07.1-19-g511ce25
Vector Packet Processing
|
L2-GRE over IPSec packet processing. More...
Go to the source code of this file.
Data Structures | |
struct | ip4_and_gre_union_t |
IPv4 and GRE header union. More... | |
struct | ipsec_gre_tx_trace_t |
Packet trace. More... | |
Functions | |
u8 * | format_ipsec_gre_tx_trace (u8 *s, va_list *args) |
static uword | ipsec_gre_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
IPSec-GRE tunnel interface tx function. More... | |
static clib_error_t * | ipsec_gre_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags) |
static u8 * | format_ipsec_gre_tunnel_name (u8 *s, va_list *args) |
static u8 * | format_ipsec_gre_device (u8 *s, va_list *args) |
VNET_DEVICE_CLASS (ipsec_gre_device_class) | |
VLIB_DEVICE_TX_FUNCTION_MULTIARCH (ipsec_gre_device_class, ipsec_gre_interface_tx) | |
static clib_error_t * | ipsec_gre_init (vlib_main_t *vm) |
Variables | |
ipsec_gre_main_t | ipsec_gre_main |
L2-GRE over IPSec packet processing.
Add GRE header to thr packet and send it to the esp-encrypt node.
Definition in file ipsec_gre.c.
Definition at line 336 of file ipsec_gre.c.
Definition at line 57 of file ipsec_gre.c.
|
static |
Definition at line 372 of file ipsec_gre.c.
|
static |
Definition at line 323 of file ipsec_gre.c.
|
static |
IPSec-GRE tunnel interface tx function.
Add GRE header to the packet.
vm | vlib_main_t corresponding to the current thread. |
node | vlib_node_runtime_t data for this node. |
frame | vlib_frame_t whose contents should be dispatched. |
Uses:
node->runtime_data
rd->dev_instance
in IPSec-GRE tunnels pool.Sets:
vnet_buffer(b)->output_features.ipsec_sad_index
vnet_buffer(b)->sw_if_index[VLIB_TX]
Nexd Index:
Definition at line 96 of file ipsec_gre.c.
VLIB_DEVICE_TX_FUNCTION_MULTIARCH | ( | ipsec_gre_device_class | , |
ipsec_gre_interface_tx | |||
) |
Definition at line 362 of file ipsec_gre.c.
VNET_DEVICE_CLASS | ( | ipsec_gre_device_class | ) |
ipsec_gre_main_t ipsec_gre_main |
Definition at line 25 of file ipsec_gre.c.