DPDK  24.07.0
rte_tcp.h
Go to the documentation of this file.
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 #ifndef _RTE_TCP_H_
9 #define _RTE_TCP_H_
10 
17 #include <stdint.h>
18 
19 #include <rte_byteorder.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 struct rte_tcp_hdr {
33  uint8_t data_off;
34  uint8_t tcp_flags;
38 } __rte_packed;
39 
43 #define RTE_TCP_CWR_FLAG 0x80
44 #define RTE_TCP_ECE_FLAG 0x40
45 #define RTE_TCP_URG_FLAG 0x20
46 #define RTE_TCP_ACK_FLAG 0x10
47 #define RTE_TCP_PSH_FLAG 0x08
48 #define RTE_TCP_RST_FLAG 0x04
49 #define RTE_TCP_SYN_FLAG 0x02
50 #define RTE_TCP_FIN_FLAG 0x01
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* RTE_TCP_H_ */
uint32_t rte_be32_t
#define __rte_packed
Definition: rte_common.h:108
rte_be16_t cksum
Definition: rte_tcp.h:36
rte_be16_t dst_port
Definition: rte_tcp.h:30
rte_be16_t rx_win
Definition: rte_tcp.h:35
uint8_t data_off
Definition: rte_tcp.h:33
rte_be16_t src_port
Definition: rte_tcp.h:29
uint16_t rte_be16_t
rte_be16_t tcp_urp
Definition: rte_tcp.h:37
rte_be32_t sent_seq
Definition: rte_tcp.h:31
uint8_t tcp_flags
Definition: rte_tcp.h:34
rte_be32_t recv_ack
Definition: rte_tcp.h:32