15 #ifndef __included_vxlan_gbp_packet_h__ 16 #define __included_vxlan_gbp_packet_h__ 1 90 #define foreach_vxlan_gbp_flags \ 97 #define _(n,f) VXLAN_GBP_FLAGS_##f = n, 102 #define foreach_vxlan_gbp_gpflags \ 111 #define _(n,f) VXLAN_GBP_GPFLAGS_##f = n, 119 u32 vni_reserved_host_byte_order;
121 vni_reserved_host_byte_order = clib_net_to_host_u32 (h->
vni_reserved);
122 return vni_reserved_host_byte_order >> 8;
128 u16 sclass_host_byte_order;
130 sclass_host_byte_order = clib_net_to_host_u16 (h->
sclass);
131 return sclass_host_byte_order;
134 static inline vxlan_gbp_gpflags_t
140 static inline vxlan_gbp_flags_t
151 h->
flag_g_i = VXLAN_GBP_FLAGS_I | VXLAN_GBP_FLAGS_G;
static void vxlan_gbp_set_header(vxlan_gbp_header_t *h, u32 vni)
u8 * format_vxlan_gbp_header_gpflags(u8 *s, va_list *args)
static vxlan_gbp_flags_t vxlan_gbp_get_flags(vxlan_gbp_header_t *h)
#define foreach_vxlan_gbp_gpflags
static vxlan_gbp_gpflags_t vxlan_gbp_get_gpflags(vxlan_gbp_header_t *h)
#define foreach_vxlan_gbp_flags
static u16 vxlan_gbp_get_sclass(vxlan_gbp_header_t *h)
static u32 vxlan_gbp_get_vni(vxlan_gbp_header_t *h)
u8 * format_vxlan_gbp_header_flags(u8 *s, va_list *args)