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, 105 } __attribute__ ((packed)) vxlan_gbp_flags_t;
107 #define VXLAN_GBP_FLAGS_GI (VXLAN_GBP_FLAGS_G|VXLAN_GBP_FLAGS_I) 109 #define foreach_vxlan_gbp_gpflags \ 119 #define _(n,f) VXLAN_GBP_GPFLAGS_##f = n, 127 u32 vni_reserved_host_byte_order;
129 vni_reserved_host_byte_order = clib_net_to_host_u32 (h->vni_reserved);
130 return vni_reserved_host_byte_order >> 8;
136 u16 sclass_host_byte_order;
138 sclass_host_byte_order = clib_net_to_host_u16 (h->
sclass);
139 return sclass_host_byte_order;
148 static inline vxlan_gbp_flags_t
159 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)