20 #ifndef included_vnet_vxlan_gpe_h 21 #define included_vnet_vxlan_gpe_h 51 }) ip4_vxlan_gpe_header_t;
62 }) ip6_vxlan_gpe_header_t;
83 }) vxlan4_gpe_tunnel_key_t;
97 }) vxlan6_gpe_tunnel_key_t;
169 #define VXLAN_GPE_TUNNEL_IS_IPV4 1 172 #define foreach_vxlan_gpe_input_next \ 173 _(DROP, "error-drop") \ 174 _(IP4_INPUT, "ip4-input") \ 175 _(IP6_INPUT, "ip6-input") \ 176 _(L2_INPUT, "l2-input") 181 #define _(s,n) VXLAN_GPE_INPUT_NEXT_##s, 190 #define vxlan_gpe_error(n,s) VXLAN_GPE_ERROR_##n, 192 #undef vxlan_gpe_error 254 u8 protocol_override,
uword encap_next_node);
256 u8 protocol_override,
uword encap_next_node);
271 uword next_node_index);
274 uword next_node_index);
uword * vxlan6_gpe_tunnel_by_key
lookup IPv6 VXLAN GPE tunnel by key
vlib_node_registration_t vxlan6_gpe_input_node
(constructor) VLIB_REGISTER_NODE (vxlan6_gpe_input_node)
u32 sibling_index
The tunnel is a child of the FIB entry for its destination.
u8 pad[3]
log2 (size of the packing page block)
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
vlib_node_registration_t vxlan_gpe_encap_node
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_encap_node)
adj_index_t mcast_adj_index
vxlan_gpe_encap_next_t
Struct for defining VXLAN GPE next nodes.
u32 * tunnel_index_by_sw_if_index
Mapping from sw_if_index to tunnel index.
u8 * format_vxlan_gpe_encap_trace(u8 *s, va_list *args)
Trace of packets encapsulated in VXLAN GPE.
vnet_main_t * vnet_main
State convenience vnet_main_t.
vxlan_gpe_main_t vxlan_gpe_main
ip46_address_t local
tunnel local address
fib_node_index_t fib_entry_index
u8 * rewrite
Rewrite string.
VXLAN GPE packet header structure.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
Struct for VXLAN GPE tunnel.
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.
vlib_node_registration_t vxlan4_gpe_input_node
(constructor) VLIB_REGISTER_NODE (vxlan4_gpe_input_node)
vlib_main_t * vlib_main
State convenience vlib_main_t.
u8 protocol
encapsulated protocol
An node in the FIB graph.
ip46_address_t remote
tunnel remote address
u32 vni
VXLAN GPE VNI in HOST byte order, shifted left 8 bits.
void vnet_int_vxlan_gpe_bypass_mode(u32 sw_if_index, u8 is_ip6, u8 is_enable)
Struct for VXLAN GPE add/del args.
int vxlan6_gpe_rewrite(vxlan_gpe_tunnel_t *t, u32 extension_size, u8 protocol_override, uword encap_next_node)
Calculate IPv6 VXLAN GPE rewrite header.
fib_node_t node
Linkage into the FIB object graph.
u32 fib_node_index_t
A typedef of a node index.
vxlan_gpe_input_error_t
struct for VXLAN GPE errors
u32 adj_index_t
An index for adjacencies.
void vxlan_gpe_unregister_decap_protocol(u8 protocol_id, uword next_node_index)
#define foreach_vxlan_gpe_input_next
next nodes for VXLAN GPE input
void vxlan_gpe_register_decap_protocol(u8 protocol_id, uword next_node_index)
u8 rewrite_size
rewrite size for dynamic plugins like iOAM
Struct for VXLAN GPE node state.
vxlan_gpe_tunnel_t * tunnels
vector of encap tunnel instances
struct _vlib_node_registration vlib_node_registration_t
uword * vxlan4_gpe_tunnel_by_key
lookup IPv4 VXLAN GPE tunnel by key
u32 decap_fib_index
FIB indices - inner IP packet lookup here.
int vxlan4_gpe_rewrite(vxlan_gpe_tunnel_t *t, u32 extension_size, u8 protocol_override, uword encap_next_node)
Calculate IPv4 VXLAN GPE rewrite header.
u32 hw_if_index
vnet intfc hw_if_index
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.
vxlan_gpe_input_next_t
struct for next nodes for VXLAN GPE input
u32 encap_fib_index
FIB indices - tunnel partner lookup here.
uword encap_next_node
Next node after VxLAN-GPE encap.
u32 sw_if_index
vnet intfc sw_if_index
vl_api_interface_index_t sw_if_index
u32 * free_vxlan_gpe_tunnel_hw_if_indices
Free vlib hw_if_indices.