net: update licence for network headers
[dpdk.git] / lib / librte_net / rte_udp.h
1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  *
4  * Copyright(c) 1982, 1986, 1990, 1993
5  *      The Regents of the University of California.
6  * Copyright(c) 2010-2014 Intel Corporation.
7  * All rights reserved.
8  */
9
10 #ifndef _RTE_UDP_H_
11 #define _RTE_UDP_H_
12
13 /**
14  * @file
15  *
16  * UDP-related defines
17  */
18
19 #include <stdint.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /**
26  * UDP Header
27  */
28 struct udp_hdr {
29         uint16_t src_port;    /**< UDP source port. */
30         uint16_t dst_port;    /**< UDP destination port. */
31         uint16_t dgram_len;   /**< UDP datagram length */
32         uint16_t dgram_cksum; /**< UDP datagram checksum */
33 } __attribute__((__packed__));
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* RTE_UDP_H_ */