]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
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. | |
7c673cae FG |
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 | #ifdef __cplusplus | |
20 | extern "C" { | |
21 | #endif | |
22 | ||
23 | /** | |
24 | * UDP Header | |
25 | */ | |
26 | struct udp_hdr { | |
27 | uint16_t src_port; /**< UDP source port. */ | |
28 | uint16_t dst_port; /**< UDP destination port. */ | |
29 | uint16_t dgram_len; /**< UDP datagram length */ | |
30 | uint16_t dgram_cksum; /**< UDP datagram checksum */ | |
31 | } __attribute__((__packed__)); | |
32 | ||
33 | #ifdef __cplusplus | |
34 | } | |
35 | #endif | |
36 | ||
37 | #endif /* RTE_UDP_H_ */ |