FD.io VPP
v19.04.1-1-ge4a0f9f
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 | |
static u8 * | format_ipsec_gre_tx_trace (u8 *s, va_list *args) |
VNET_DEVICE_CLASS_TX_FN() | ipsec_gre_device_class (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) | |
VNET_HW_INTERFACE_CLASS (ipsec_gre_hw_interface_class) | |
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 332 of file ipsec_gre.c.
Definition at line 61 of file ipsec_gre.c.
VNET_DEVICE_CLASS_TX_FN() ipsec_gre_device_class | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
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]
Next Index:
Definition at line 99 of file ipsec_gre.c.
|
static |
Definition at line 366 of file ipsec_gre.c.
|
static |
Definition at line 319 of file ipsec_gre.c.
VNET_DEVICE_CLASS | ( | ipsec_gre_device_class | ) |
VNET_HW_INTERFACE_CLASS | ( | ipsec_gre_hw_interface_class | ) |
ipsec_gre_main_t ipsec_gre_main |
Definition at line 28 of file ipsec_gre.c.