199a2dd95SBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause 299a2dd95SBruce Richardson * Copyright(c) 1982, 1986, 1990, 1993 399a2dd95SBruce Richardson * The Regents of the University of California. 499a2dd95SBruce Richardson * Copyright(c) 2010-2014 Intel Corporation. 599a2dd95SBruce Richardson * All rights reserved. 699a2dd95SBruce Richardson */ 799a2dd95SBruce Richardson 899a2dd95SBruce Richardson #ifndef _RTE_UDP_H_ 999a2dd95SBruce Richardson #define _RTE_UDP_H_ 1099a2dd95SBruce Richardson 1199a2dd95SBruce Richardson /** 1299a2dd95SBruce Richardson * @file 1399a2dd95SBruce Richardson * 1499a2dd95SBruce Richardson * UDP-related defines 1599a2dd95SBruce Richardson */ 1699a2dd95SBruce Richardson 1799a2dd95SBruce Richardson #include <stdint.h> 1899a2dd95SBruce Richardson 1999a2dd95SBruce Richardson #include <rte_byteorder.h> 2099a2dd95SBruce Richardson 2199a2dd95SBruce Richardson /** 2299a2dd95SBruce Richardson * UDP Header 2399a2dd95SBruce Richardson */ 24*fba98755SAndre Muezerie struct __rte_packed_begin rte_udp_hdr { 2599a2dd95SBruce Richardson rte_be16_t src_port; /**< UDP source port. */ 2699a2dd95SBruce Richardson rte_be16_t dst_port; /**< UDP destination port. */ 2799a2dd95SBruce Richardson rte_be16_t dgram_len; /**< UDP datagram length */ 2899a2dd95SBruce Richardson rte_be16_t dgram_cksum; /**< UDP datagram checksum */ 29*fba98755SAndre Muezerie } __rte_packed_end; 3099a2dd95SBruce Richardson 3199a2dd95SBruce Richardson #endif /* RTE_UDP_H_ */ 32