diff options
Diffstat (limited to 'src/seastar/dpdk/lib/librte_net/rte_udp.h')
-rw-r--r-- | src/seastar/dpdk/lib/librte_net/rte_udp.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/seastar/dpdk/lib/librte_net/rte_udp.h b/src/seastar/dpdk/lib/librte_net/rte_udp.h new file mode 100644 index 000000000..ba033955c --- /dev/null +++ b/src/seastar/dpdk/lib/librte_net/rte_udp.h @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 1982, 1986, 1990, 1993 + * The Regents of the University of California. + * Copyright(c) 2010-2014 Intel Corporation. + * All rights reserved. + */ + +#ifndef _RTE_UDP_H_ +#define _RTE_UDP_H_ + +/** + * @file + * + * UDP-related defines + */ + +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * UDP Header + */ +struct udp_hdr { + uint16_t src_port; /**< UDP source port. */ + uint16_t dst_port; /**< UDP destination port. */ + uint16_t dgram_len; /**< UDP datagram length */ + uint16_t dgram_cksum; /**< UDP datagram checksum */ +} __attribute__((__packed__)); + +#ifdef __cplusplus +} +#endif + +#endif /* RTE_UDP_H_ */ |