blob: 0367ad95c33e3d0dbfae14d86fa8f6da9cd1a241 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_LINUX_UDP_H
8#define _UAPI_LINUX_UDP_H
9#include <linux/types.h>
Elliott Hughesf8a22432015-09-22 12:34:13 -070010struct __kernel_udphdr {
Tao Baod7db5942015-01-28 10:07:51 -080011 __be16 source;
12 __be16 dest;
13 __be16 len;
14 __sum16 check;
Ben Cheng655a7c02013-10-16 16:09:24 -070015};
16#define UDP_CORK 1
17#define UDP_ENCAP 100
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070018#define UDP_NO_CHECK6_TX 101
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070019#define UDP_NO_CHECK6_RX 102
Christopher Ferris9ce28842018-10-25 12:11:39 -070020#define UDP_SEGMENT 103
Christopher Ferrisd842e432019-03-07 10:21:59 -080021#define UDP_GRO 104
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070022#define UDP_ENCAP_ESPINUDP_NON_IKE 1
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define UDP_ENCAP_ESPINUDP 2
24#define UDP_ENCAP_L2TPINUDP 3
Christopher Ferris106b3a82016-08-24 12:15:38 -070025#define UDP_ENCAP_GTP0 4
26#define UDP_ENCAP_GTP1U 5
Christopher Ferris9ce28842018-10-25 12:11:39 -070027#define UDP_ENCAP_RXRPC 6
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070028#define TCP_ENCAP_ESPINTCP 7
Nick Kralevicha67e4de2013-01-14 11:28:26 -080029#endif