summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/lib/librte_net/rte_sctp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/dpdk/lib/librte_net/rte_sctp.h')
-rw-r--r--src/spdk/dpdk/lib/librte_net/rte_sctp.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/spdk/dpdk/lib/librte_net/rte_sctp.h b/src/spdk/dpdk/lib/librte_net/rte_sctp.h
new file mode 100644
index 000000000..965682dc2
--- /dev/null
+++ b/src/spdk/dpdk/lib/librte_net/rte_sctp.h
@@ -0,0 +1,39 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 1982, 1986, 1990, 1993
+ * The Regents of the University of California.
+ * Copyright(c) 2010-2014 Intel Corporation.
+ * All rights reserved.
+ */
+
+/**
+ * @file
+ *
+ * SCTP-related defines
+ */
+
+#ifndef _RTE_SCTP_H_
+#define _RTE_SCTP_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+#include <rte_byteorder.h>
+
+/**
+ * SCTP Header
+ */
+struct rte_sctp_hdr {
+ 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. */
+} __rte_packed;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* RTE_SCTP_H_ */