lwtunnel.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
1/****************************************************************************
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 {
23  LWTUNNEL_ENCAP_NONE,
24  LWTUNNEL_ENCAP_MPLS,
25  LWTUNNEL_ENCAP_IP,
26  LWTUNNEL_ENCAP_ILA,
27  LWTUNNEL_ENCAP_IP6,
28  LWTUNNEL_ENCAP_SEG6,
29  LWTUNNEL_ENCAP_BPF,
30  __LWTUNNEL_ENCAP_MAX,
31};
32#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
33enum lwtunnel_ip_t {
34  LWTUNNEL_IP_UNSPEC,
35  LWTUNNEL_IP_ID,
36  LWTUNNEL_IP_DST,
37  LWTUNNEL_IP_SRC,
38  LWTUNNEL_IP_TTL,
39  LWTUNNEL_IP_TOS,
40  LWTUNNEL_IP_FLAGS,
41  LWTUNNEL_IP_PAD,
42  __LWTUNNEL_IP_MAX,
43};
44#define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
45enum lwtunnel_ip6_t {
46  LWTUNNEL_IP6_UNSPEC,
47  LWTUNNEL_IP6_ID,
48  LWTUNNEL_IP6_DST,
49  LWTUNNEL_IP6_SRC,
50  LWTUNNEL_IP6_HOPLIMIT,
51  LWTUNNEL_IP6_TC,
52  LWTUNNEL_IP6_FLAGS,
53  LWTUNNEL_IP6_PAD,
54  __LWTUNNEL_IP6_MAX,
55};
56#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
57enum {
58  LWT_BPF_PROG_UNSPEC,
59  LWT_BPF_PROG_FD,
60  LWT_BPF_PROG_NAME,
61  __LWT_BPF_PROG_MAX,
62};
63#define LWT_BPF_PROG_MAX (__LWT_BPF_PROG_MAX - 1)
64enum {
65  LWT_BPF_UNSPEC,
66  LWT_BPF_IN,
67  LWT_BPF_OUT,
68  LWT_BPF_XMIT,
69  LWT_BPF_XMIT_HEADROOM,
70  __LWT_BPF_MAX,
71};
72#define LWT_BPF_MAX (__LWT_BPF_MAX - 1)
73#define LWT_BPF_MAX_HEADROOM 256
74#endif
75