15 #ifndef __included_vxlan_gpe_ioam_util_h__ 16 #define __included_vxlan_gpe_ioam_util_h__ 45 s =
format (s,
"VXLAN-GPE-IOAM: next_index %d len %d traced %d",
63 s = (*hm->
trace[type0]) (s, opt0);
68 format (s,
"\n unrecognized option %d length %d", type0,
87 u32 * next0,
u32 drop_node_val,
109 if (gpe_ioam0->
length > clib_net_to_host_u16 (ip0->
length))
111 *next0 = drop_node_val;
116 while (opt0 < limit0)
130 if ((*hm->
options[type0]) (b0, opt0, 1 ,
133 *next0 = drop_node_val;
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
#define clib_memcpy(d, s, n)
vxlan_gpe_ioam_main_t vxlan_gpe_ioam_main
VXLAN GPE packet header structure.
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static u8 * format_vxlan_gpe_ioam_v4_trace(u8 *s, va_list *args)
static void vxlan_gpe_encap_decap_ioam_v4_one_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b0, u32 *next0, u32 drop_node_val, u8 use_adj)
int(* options[256])(vlib_buffer_t *b, vxlan_gpe_ioam_option_t *opt, u8 is_ipv4, u8 use_adj)
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
VLIB buffer representation.
VXLAN GPE Extension (iOAM) Header definition.
u8 *(* trace[256])(u8 *s, vxlan_gpe_ioam_option_t *opt)