FD.io VPP
v16.09
Vector Packet Processing
|
VXLAN GPE definitions. More...
Go to the source code of this file.
Data Structures | |
struct | vxlan_gpe_tunnel_t |
Struct for VXLAN GPE tunnel. More... | |
struct | vxlan_gpe_main_t |
Struct for VXLAN GPE node state. More... | |
struct | vnet_vxlan_gpe_add_del_tunnel_args_t |
Struct for VXLAN GPE add/del args. More... | |
Macros | |
#define | VXLAN_GPE_TUNNEL_IS_IPV4 1 |
Flags for vxlan_gpe_tunnel_t. More... | |
#define | foreach_vxlan_gpe_input_next |
next nodes for VXLAN GPE input More... | |
#define | vxlan_gpe_error(n, s) VXLAN_GPE_ERROR_##n, |
Enumerations | |
enum | vxlan_gpe_input_next_t { VXLAN_GPE_INPUT_N_NEXT } |
struct for next nodes for VXLAN GPE input More... | |
enum | vxlan_gpe_input_error_t { vxlan_gpe_error, vxlan_gpe_error } |
struct for VXLAN GPE errors More... | |
Functions | |
typedef | CLIB_PACKED (struct{ip4_header_t ip4;udp_header_t udp;vxlan_gpe_header_t vxlan;}) ip4_vxlan_gpe_header_t |
VXLAN GPE header struct. More... | |
typedef | CLIB_PACKED (struct{ip6_header_t ip6;udp_header_t udp;vxlan_gpe_header_t vxlan;}) ip6_vxlan_gpe_header_t |
typedef | CLIB_PACKED (struct{union{struct{u32 local;u32 remote;u32 vni;u32 pad;};u64 as_u64[2];};}) vxlan4_gpe_tunnel_key_t |
Key struct for IPv4 VXLAN GPE tunnel. More... | |
typedef | CLIB_PACKED (struct{ip6_address_t local;ip6_address_t remote;u32 vni;}) vxlan6_gpe_tunnel_key_t |
Key struct for IPv6 VXLAN GPE tunnel. More... | |
u8 * | format_vxlan_gpe_encap_trace (u8 *s, va_list *args) |
Trace of packets encapsulated in VXLAN GPE. More... | |
int | vnet_vxlan_gpe_add_del_tunnel (vnet_vxlan_gpe_add_del_tunnel_args_t *a, u32 *sw_if_indexp) |
Add or Del a VXLAN GPE tunnel. More... | |
Variables | |
vxlan_gpe_main_t | vxlan_gpe_main |
vlib_node_registration_t | vxlan_gpe_encap_node |
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_encap_node) More... | |
vlib_node_registration_t | vxlan4_gpe_input_node |
(constructor) VLIB_REGISTER_NODE (vxlan4_gpe_input_node) More... | |
vlib_node_registration_t | vxlan6_gpe_input_node |
(constructor) VLIB_REGISTER_NODE (vxlan6_gpe_input_node) More... | |
VXLAN GPE definitions.
Definition in file vxlan_gpe.h.
#define foreach_vxlan_gpe_input_next |
next nodes for VXLAN GPE input
Definition at line 123 of file vxlan_gpe.h.
#define vxlan_gpe_error | ( | n, | |
s | |||
) | VXLAN_GPE_ERROR_##n, |
Definition at line 139 of file vxlan_gpe.h.
#define VXLAN_GPE_TUNNEL_IS_IPV4 1 |
Flags for vxlan_gpe_tunnel_t.
Definition at line 120 of file vxlan_gpe.h.
struct for VXLAN GPE errors
Enumerator | |
---|---|
vxlan_gpe_error | |
vxlan_gpe_error |
Definition at line 138 of file vxlan_gpe.h.
struct for next nodes for VXLAN GPE input
Enumerator | |
---|---|
VXLAN_GPE_INPUT_N_NEXT |
Definition at line 130 of file vxlan_gpe.h.
typedef CLIB_PACKED | ( | struct{ip4_header_t ip4;udp_header_t udp;vxlan_gpe_header_t vxlan;} | ) |
VXLAN GPE header struct.
typedef CLIB_PACKED | ( | struct{ip6_header_t ip6;udp_header_t udp;vxlan_gpe_header_t vxlan;} | ) |
typedef CLIB_PACKED | ( | struct{union{struct{u32 local;u32 remote;u32 vni;u32 pad;};u64 as_u64[2];};} | ) |
Key struct for IPv4 VXLAN GPE tunnel.
Key fields: local remote, vni all fields in NET byte order VNI shifted 8 bits
typedef CLIB_PACKED | ( | struct{ip6_address_t local;ip6_address_t remote;u32 vni;} | ) |
Key struct for IPv6 VXLAN GPE tunnel.
Key fields: local remote, vni all fields in NET byte order VNI shifted 8 bits
int vnet_vxlan_gpe_add_del_tunnel | ( | vnet_vxlan_gpe_add_del_tunnel_args_t * | a, |
u32 * | sw_if_indexp | ||
) |
Add or Del a VXLAN GPE tunnel.
*a | |
*sw_if_index |
Definition at line 278 of file vxlan_gpe.c.
vlib_node_registration_t vxlan4_gpe_input_node |
vlib_node_registration_t vxlan6_gpe_input_node |
vlib_node_registration_t vxlan_gpe_encap_node |
vxlan_gpe_main_t vxlan_gpe_main |
Definition at line 167 of file vxlan_gpe.h.