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 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;
157 h->vni_reserved = clib_host_to_net_u32 (
vni << 8);
158 h->flags_sclass_as_u32 = 0;
159 h->flag_g_i = VXLAN_GBP_FLAGS_I | VXLAN_GBP_FLAGS_G;