Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_UDP_H |
| 8 | #define _UAPI_LINUX_UDP_H |
| 9 | #include <linux/types.h> |
Elliott Hughes | f8a2243 | 2015-09-22 12:34:13 -0700 | [diff] [blame] | 10 | struct __kernel_udphdr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 11 | __be16 source; |
| 12 | __be16 dest; |
| 13 | __be16 len; |
| 14 | __sum16 check; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | }; |
| 16 | #define UDP_CORK 1 |
| 17 | #define UDP_ENCAP 100 |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 18 | #define UDP_NO_CHECK6_TX 101 |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 19 | #define UDP_NO_CHECK6_RX 102 |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 20 | #define UDP_SEGMENT 103 |
Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 21 | #define UDP_GRO 104 |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 22 | #define UDP_ENCAP_ESPINUDP_NON_IKE 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define UDP_ENCAP_ESPINUDP 2 |
| 24 | #define UDP_ENCAP_L2TPINUDP 3 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 25 | #define UDP_ENCAP_GTP0 4 |
| 26 | #define UDP_ENCAP_GTP1U 5 |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 27 | #define UDP_ENCAP_RXRPC 6 |
Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 28 | #define TCP_ENCAP_ESPINTCP 7 |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 29 | #endif |