blob: e8c4b0c03e0825e3211b2df7d3f4959544f6edfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2016-2018 Linaro Limited
*/
/**
* @file
*
* ODP SCTP header
*/
#ifndef ODP_SCTP_H_
#define ODP_SCTP_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <odp/api/align.h>
#include <odp/api/byteorder.h>
#include <odp/api/debug.h>
/** @addtogroup odp_header ODP HEADER
* @{
*/
/** SCTP header length */
#define _ODP_SCTPHDR_LEN 12
/** SCTP header */
typedef struct ODP_PACKED {
odp_u16be_t src_port; /**< Source port */
odp_u16be_t dst_port; /**< Destination port */
odp_u32be_t tag; /**< Verification tag */
odp_u32be_t chksum; /**< SCTP header and data checksum */
} _odp_sctphdr_t;
/** @internal Compile time assert */
ODP_STATIC_ASSERT(sizeof(_odp_sctphdr_t) == _ODP_SCTPHDR_LEN,
"_ODP_SCTPHDR_T__SIZE_ERROR");
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif
|