xref: /dpdk/lib/net/rte_udp.h (revision fba9875559906e04eaeb74532f4cfd51194259a2)
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 /**
22  * UDP Header
23  */
24 struct __rte_packed_begin rte_udp_hdr {
25 	rte_be16_t src_port;    /**< UDP source port. */
26 	rte_be16_t dst_port;    /**< UDP destination port. */
27 	rte_be16_t dgram_len;   /**< UDP datagram length */
28 	rte_be16_t dgram_cksum; /**< UDP datagram checksum */
29 } __rte_packed_end;
30 
31 #endif /* RTE_UDP_H_ */
32