net: add compat headers without rte prefix
[dpdk.git] / lib / librte_net / rte_sctp.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 1982, 1986, 1990, 1993
3  *      The Regents of the University of California.
4  * Copyright(c) 2010-2014 Intel Corporation.
5  * All rights reserved.
6  */
7
8 /**
9  * @file
10  *
11  * SCTP-related defines
12  */
13
14 #ifndef _RTE_SCTP_H_
15 #define _RTE_SCTP_H_
16
17 #ifndef RTE_NET_NO_COMPAT
18 #include <rte_sctp_compat.h>
19 #endif
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 #include <stdint.h>
26
27 /**
28  * SCTP Header
29  */
30 struct rte_sctp_hdr {
31         uint16_t src_port; /**< Source port. */
32         uint16_t dst_port; /**< Destin port. */
33         uint32_t tag;      /**< Validation tag. */
34         uint32_t cksum;    /**< Checksum. */
35 } __attribute__((__packed__));
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /* RTE_SCTP_H_ */