#include <stdint.h>
+#include <rte_byteorder.h>
#include <rte_udp.h>
* Reserved fields (24 bits and 8 bits)
*/
struct rte_vxlan_hdr {
- uint32_t vx_flags; /**< flag (8) + Reserved (24). */
- uint32_t vx_vni; /**< VNI (24) + Reserved (8). */
+ rte_be32_t vx_flags; /**< flag (8) + Reserved (24). */
+ rte_be32_t vx_vni; /**< VNI (24) + Reserved (8). */
} __rte_packed;
/** VXLAN tunnel header length. */
uint8_t vx_flags; /**< flag (8). */
uint8_t reserved[2]; /**< Reserved (16). */
uint8_t proto; /**< next-protocol (8). */
- uint32_t vx_vni; /**< VNI (24) + Reserved (8). */
+ rte_be32_t vx_vni; /**< VNI (24) + Reserved (8). */
} __rte_packed;
/** VXLAN-GPE tunnel header length. */