#include <stdint.h>
#include <rte_byteorder.h>
+/**
+ * @file
+ *
+ * GRE headers definition.
+ *
+ * Generic Routing Encapsulation (GRE) is a tunneling protocol
+ * that can encapsulate a wide variety of network layer protocols
+ * inside virtual point-to-point links or point-to-multipoint links
+ * over an Internet Protocol network.
+ */
+
#ifdef __cplusplus
extern "C" {
#endif
* GRE Header
*/
__extension__
-struct gre_hdr {
+struct rte_gre_hdr {
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
uint16_t res2:4; /**< Reserved */
uint16_t s:1; /**< Sequence Number Present bit */
uint16_t ver:3; /**< Version Number */
#endif
uint16_t proto; /**< Protocol Type */
-} __attribute__((__packed__));
+} __rte_packed;
#ifdef __cplusplus
}