DPDK  19.08.0-rc0
rte_udp.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_UDP_H_
9 #define _RTE_UDP_H_
10 
17 #include <stdint.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
26 struct rte_udp_hdr {
27  uint16_t src_port;
28  uint16_t dst_port;
29  uint16_t dgram_len;
30  uint16_t dgram_cksum;
31 } __attribute__((__packed__));
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* RTE_UDP_H_ */
uint16_t dgram_len
Definition: rte_udp.h:29
uint16_t dgram_cksum
Definition: rte_udp.h:30
uint16_t src_port
Definition: rte_udp.h:27
uint16_t dst_port
Definition: rte_udp.h:28