X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_net%2Frte_udp.h;h=6135494c4a94510c8c57500fc37ac02639ed4108;hb=4a91344b5e06081f8e2254266bb469489f6633d8;hp=1c3437c5f071f9a345ae28276c3bd0a3f227d671;hpb=e73e3547ce54d7ae48dff82d87efac0b7a30692a;p=dpdk.git diff --git a/lib/librte_net/rte_udp.h b/lib/librte_net/rte_udp.h index 1c3437c5f0..6135494c4a 100644 --- a/lib/librte_net/rte_udp.h +++ b/lib/librte_net/rte_udp.h @@ -16,6 +16,8 @@ #include +#include + #ifdef __cplusplus extern "C" { #endif @@ -24,11 +26,11 @@ extern "C" { * UDP Header */ struct rte_udp_hdr { - uint16_t src_port; /**< UDP source port. */ - uint16_t dst_port; /**< UDP destination port. */ - uint16_t dgram_len; /**< UDP datagram length */ - uint16_t dgram_cksum; /**< UDP datagram checksum */ -} __attribute__((__packed__)); + rte_be16_t src_port; /**< UDP source port. */ + rte_be16_t dst_port; /**< UDP destination port. */ + rte_be16_t dgram_len; /**< UDP datagram length */ + rte_be16_t dgram_cksum; /**< UDP datagram checksum */ +} __rte_packed; #ifdef __cplusplus }