summaryrefslogtreecommitdiff
path: root/lib/librte_net/rte_udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_net/rte_udp.h')
-rw-r--r--lib/librte_net/rte_udp.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/librte_net/rte_udp.h b/lib/librte_net/rte_udp.h
index 1c3437c..01c26b3 100644
--- a/lib/librte_net/rte_udp.h
+++ b/lib/librte_net/rte_udp.h
@@ -16,6 +16,8 @@
#include <stdint.h>
+#include <rte_byteorder.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -24,10 +26,10 @@ 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 */
+ 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 */
} __attribute__((__packed__));
#ifdef __cplusplus