f-stack/dpdk/lib/net/rte_sctp.h

40 lines
672 B
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* 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.
2017-04-21 10:43:26 +00:00
*/
/**
* @file
*
* SCTP-related defines
*/
#ifndef _RTE_SCTP_H_
#define _RTE_SCTP_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
2020-06-18 16:55:50 +00:00
#include <rte_byteorder.h>
2017-04-21 10:43:26 +00:00
/**
* SCTP Header
*/
2020-06-18 16:55:50 +00:00
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. */
2021-02-05 08:48:47 +00:00
} __rte_packed;
2017-04-21 10:43:26 +00:00
#ifdef __cplusplus
}
#endif
#endif /* RTE_SCTP_H_ */