1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_LINUX_UDP_H 7 #define _UAPI_LINUX_UDP_H 8 #include <linux/types.h> 9 struct __kernel_udphdr { 10 __be16 source; 11 __be16 dest; 12 __be16 len; 13 __sum16 check; 14 }; 15 #define UDP_CORK 1 16 #define UDP_ENCAP 100 17 #define UDP_NO_CHECK6_TX 101 18 #define UDP_NO_CHECK6_RX 102 19 #define UDP_SEGMENT 103 20 #define UDP_ENCAP_ESPINUDP_NON_IKE 1 21 #define UDP_ENCAP_ESPINUDP 2 22 #define UDP_ENCAP_L2TPINUDP 3 23 #define UDP_ENCAP_GTP0 4 24 #define UDP_ENCAP_GTP1U 5 25 #define UDP_ENCAP_RXRPC 6 26 #endif 27