Helper Reference Manual
1.7.1
sctp.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2014-2018 Linaro Limited
3
*/
4
11
#ifndef ODPH_SCTP_H_
12
#define ODPH_SCTP_H_
13
14
#include <odp_api.h>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
26
#define ODPH_SCTPHDR_LEN 12
27
29
typedef
struct
ODP_PACKED
{
30
odp_u16be_t
src_port
;
31
odp_u16be_t
dst_port
;
32
odp_u32be_t
tag
;
33
odp_u32be_t
chksum
;
34
}
odph_sctphdr_t
;
35
37
ODP_STATIC_ASSERT(
sizeof
(
odph_sctphdr_t
) ==
ODPH_SCTPHDR_LEN
,
38
"ODPH_SCTPHDR_T__SIZE_ERROR"
);
45
#ifdef __cplusplus
46
}
47
#endif
48
49
#endif
odph_sctphdr_t
struct ODP_PACKED odph_sctphdr_t
SCTP header.
ODPH_SCTPHDR_LEN
#define ODPH_SCTPHDR_LEN
SCTP header length.
Definition:
sctp.h:26
ODP_PACKED
Ethernet MAC address.
Definition:
eth.h:54
ODP_PACKED::dst_port
odp_u16be_t dst_port
Destination port.
Definition:
sctp.h:31
ODP_PACKED::chksum
odp_u32be_t chksum
SCTP header and data checksum.
Definition:
sctp.h:33
ODP_PACKED::src_port
odp_u16be_t src_port
Source port.
Definition:
sctp.h:30
ODP_PACKED::tag
odp_u32be_t tag
Verification tag.
Definition:
sctp.h:32
helper
include
odp
helper
sctp.h
Generated by
1.9.1