15 #ifndef __included_vxlan_gbp_packet_h__ 16 #define __included_vxlan_gbp_packet_h__ 1 95 #define foreach_vxlan_gbp_flags \ 102 #define _(n,f) VXLAN_GBP_FLAGS_##f = n, 107 #define foreach_vxlan_gbp_gpflags \ 117 #define _(n,f) VXLAN_GBP_GPFLAGS_##f = n, 125 u32 vni_reserved_host_byte_order;
127 vni_reserved_host_byte_order = clib_net_to_host_u32 (h->
vni_reserved);
128 return vni_reserved_host_byte_order >> 8;
134 u16 sclass_host_byte_order;
136 sclass_host_byte_order = clib_net_to_host_u16 (h->
sclass);
137 return sclass_host_byte_order;
140 static inline vxlan_gbp_gpflags_t
146 static inline vxlan_gbp_flags_t
157 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)