blob: 05cc4fd6397aef241b0cc5753a3a394846400f2b [file] [log] [blame]
Christopher Ferris05d08e92016-02-04 13:16:38 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_LWTUNNEL_H_
20#define _UAPI_LWTUNNEL_H_
21#include <linux/types.h>
22enum lwtunnel_encap_types {
Christopher Ferris05d08e92016-02-04 13:16:38 -080023 LWTUNNEL_ENCAP_NONE,
24 LWTUNNEL_ENCAP_MPLS,
25 LWTUNNEL_ENCAP_IP,
26 LWTUNNEL_ENCAP_ILA,
Christopher Ferris05d08e92016-02-04 13:16:38 -080027 LWTUNNEL_ENCAP_IP6,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080028 LWTUNNEL_ENCAP_SEG6,
29 LWTUNNEL_ENCAP_BPF,
Christopher Ferris1308ad32017-11-14 17:32:13 -080030 LWTUNNEL_ENCAP_SEG6_LOCAL,
Christopher Ferris05d08e92016-02-04 13:16:38 -080031 __LWTUNNEL_ENCAP_MAX,
32};
33#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -080034enum lwtunnel_ip_t {
35 LWTUNNEL_IP_UNSPEC,
36 LWTUNNEL_IP_ID,
37 LWTUNNEL_IP_DST,
Christopher Ferris05d08e92016-02-04 13:16:38 -080038 LWTUNNEL_IP_SRC,
39 LWTUNNEL_IP_TTL,
40 LWTUNNEL_IP_TOS,
41 LWTUNNEL_IP_FLAGS,
Christopher Ferris106b3a82016-08-24 12:15:38 -070042 LWTUNNEL_IP_PAD,
Christopher Ferris05d08e92016-02-04 13:16:38 -080043 __LWTUNNEL_IP_MAX,
44};
45#define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -070046enum lwtunnel_ip6_t {
Christopher Ferris05d08e92016-02-04 13:16:38 -080047 LWTUNNEL_IP6_UNSPEC,
48 LWTUNNEL_IP6_ID,
49 LWTUNNEL_IP6_DST,
Christopher Ferris106b3a82016-08-24 12:15:38 -070050 LWTUNNEL_IP6_SRC,
Christopher Ferris05d08e92016-02-04 13:16:38 -080051 LWTUNNEL_IP6_HOPLIMIT,
52 LWTUNNEL_IP6_TC,
53 LWTUNNEL_IP6_FLAGS,
Christopher Ferris106b3a82016-08-24 12:15:38 -070054 LWTUNNEL_IP6_PAD,
55 __LWTUNNEL_IP6_MAX,
Christopher Ferris05d08e92016-02-04 13:16:38 -080056};
57#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
Christopher Ferris48af7cb2017-02-21 12:35:09 -080058enum {
59 LWT_BPF_PROG_UNSPEC,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080060 LWT_BPF_PROG_FD,
61 LWT_BPF_PROG_NAME,
62 __LWT_BPF_PROG_MAX,
63};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080064#define LWT_BPF_PROG_MAX (__LWT_BPF_PROG_MAX - 1)
65enum {
66 LWT_BPF_UNSPEC,
67 LWT_BPF_IN,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080068 LWT_BPF_OUT,
69 LWT_BPF_XMIT,
70 LWT_BPF_XMIT_HEADROOM,
71 __LWT_BPF_MAX,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080072};
73#define LWT_BPF_MAX (__LWT_BPF_MAX - 1)
74#define LWT_BPF_MAX_HEADROOM 256
Christopher Ferris05d08e92016-02-04 13:16:38 -080075#endif