net/ixgbe: fix statistics in flow control mode
[dpdk.git] / lib / librte_net / rte_udp.h
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
11 /**
12  * @file
13  *
14  * UDP-related defines
15  */
16
17 #include <stdint.h>
18
19 #include <rte_byteorder.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /**
26  * UDP Header
27  */
28 struct rte_udp_hdr {
29         rte_be16_t src_port;    /**< UDP source port. */
30         rte_be16_t dst_port;    /**< UDP destination port. */
31         rte_be16_t dgram_len;   /**< UDP datagram length */
32         rte_be16_t dgram_cksum; /**< UDP datagram checksum */
33 } __rte_packed;
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* RTE_UDP_H_ */