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;
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
struct ODP_PACKED odph_sctphdr_t
SCTP header.
#define ODPH_SCTPHDR_LEN
SCTP header length.
Definition: sctp.h:26
Ethernet MAC address.
Definition: eth.h:54
odp_u16be_t dst_port
Destination port.
Definition: sctp.h:31
odp_u32be_t chksum
SCTP header and data checksum.
Definition: sctp.h:33
odp_u16be_t src_port
Source port.
Definition: sctp.h:30
odp_u32be_t tag
Verification tag.
Definition: sctp.h:32