FD.io VPP  v16.06
Vector Packet Processing
vxlan.h File Reference
+ Include dependency graph for vxlan.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vxlan_tunnel_t
 
struct  vxlan_main_t
 
struct  vnet_vxlan_add_del_tunnel_args_t
 

Macros

#define VXLAN_TUNNEL_IS_IPV4   1
 
#define foreach_vxlan_input_next
 
#define vxlan_error(n, s)   VXLAN_ERROR_##n,
 
#define vxlan4_dummy_rewrite   ((u8 *) &vxlan_main.dummy4_str[1])
 
#define vxlan6_dummy_rewrite   ((u8 *) &vxlan_main.dummy6_str[1])
 

Enumerations

enum  vxlan_input_next_t { VXLAN_INPUT_N_NEXT }
 
enum  vxlan_input_error_t { VXLAN_N_ERROR }
 

Functions

typedef CLIB_PACKED (struct{ip4_header_t ip4;udp_header_t udp;vxlan_header_t vxlan;}) ip4_vxlan_header_t
 
typedef CLIB_PACKED (struct{ip6_header_t ip6;udp_header_t udp;vxlan_header_t vxlan;}) ip6_vxlan_header_t
 
typedef CLIB_PACKED (struct{union{struct{u32 src;u32 vni;};u64 as_u64;};}) vxlan4_tunnel_key_t
 
typedef CLIB_PACKED (struct{ip6_address_t src;u32 vni;}) vxlan6_tunnel_key_t
 
u8format_vxlan_encap_trace (u8 *s, va_list *args)
 
int vnet_vxlan_add_del_tunnel (vnet_vxlan_add_del_tunnel_args_t *a, u32 *sw_if_indexp)
 

Variables

vxlan_main_t vxlan_main
 
vlib_node_registration_t vxlan4_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_input_node) More...
 
vlib_node_registration_t vxlan6_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan6_input_node) More...
 
vlib_node_registration_t vxlan_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan_encap_node) More...
 

Macro Definition Documentation

#define foreach_vxlan_input_next
Value:
_(DROP, "error-drop") \
_(L2_INPUT, "l2-input") \
_(IP4_INPUT, "ip4-input") \
_(IP6_INPUT, "ip6-input")
DROP
Definition: error.def:41

Definition at line 98 of file vxlan.h.

#define vxlan4_dummy_rewrite   ((u8 *) &vxlan_main.dummy4_str[1])

Definition at line 131 of file vxlan.h.

#define vxlan6_dummy_rewrite   ((u8 *) &vxlan_main.dummy6_str[1])

Definition at line 134 of file vxlan.h.

#define vxlan_error (   n,
 
)    VXLAN_ERROR_##n,

Definition at line 112 of file vxlan.h.

#define VXLAN_TUNNEL_IS_IPV4   1

Definition at line 96 of file vxlan.h.

Enumeration Type Documentation

Enumerator
VXLAN_N_ERROR 

Definition at line 111 of file vxlan.h.

Enumerator
VXLAN_INPUT_N_NEXT 

Definition at line 104 of file vxlan.h.

Function Documentation

typedef CLIB_PACKED ( struct{ip4_header_t ip4;udp_header_t udp;vxlan_header_t vxlan;}  )
typedef CLIB_PACKED ( struct{ip6_header_t ip6;udp_header_t udp;vxlan_header_t vxlan;}  )
typedef CLIB_PACKED ( struct{union{struct{u32 src;u32 vni;};u64 as_u64;};}  )
typedef CLIB_PACKED ( struct{ip6_address_t src;u32 vni;}  )
u8* format_vxlan_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 52 of file encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_vxlan_add_del_tunnel ( vnet_vxlan_add_del_tunnel_args_t a,
u32 sw_if_indexp 
)

Definition at line 196 of file vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t vxlan4_input_node

(constructor) VLIB_REGISTER_NODE (vxlan4_input_node)

Definition at line 532 of file decap.c.

vlib_node_registration_t vxlan6_input_node

(constructor) VLIB_REGISTER_NODE (vxlan6_input_node)

Definition at line 553 of file decap.c.

vlib_node_registration_t vxlan_encap_node

(constructor) VLIB_REGISTER_NODE (vxlan_encap_node)

Definition at line 571 of file encap.c.

vxlan_main_t vxlan_main

Definition at line 144 of file vxlan.h.