summaryrefslogtreecommitdiff
path: root/lib/librte_net/rte_sctp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_net/rte_sctp.h')
-rw-r--r--lib/librte_net/rte_sctp.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/librte_net/rte_sctp.h b/lib/librte_net/rte_sctp.h
index b3661b0..ab38be7 100644
--- a/lib/librte_net/rte_sctp.h
+++ b/lib/librte_net/rte_sctp.h
@@ -20,14 +20,16 @@ extern "C" {
#include <stdint.h>
+#include <rte_byteorder.h>
+
/**
* SCTP Header
*/
struct rte_sctp_hdr {
- uint16_t src_port; /**< Source port. */
- uint16_t dst_port; /**< Destin port. */
- uint32_t tag; /**< Validation tag. */
- uint32_t cksum; /**< Checksum. */
+ rte_be16_t src_port; /**< Source port. */
+ rte_be16_t dst_port; /**< Destin port. */
+ rte_be32_t tag; /**< Validation tag. */
+ rte_be32_t cksum; /**< Checksum. */
} __attribute__((__packed__));
#ifdef __cplusplus