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_IF_TUNNEL_H_
20#define _UAPI_IF_TUNNEL_H_
21#include <linux/types.h>
22#include <asm/byteorder.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
25#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
26#define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
27#define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SIOCGETPRL (SIOCDEVPRIVATE + 4)
30#define SIOCADDPRL (SIOCDEVPRIVATE + 5)
31#define SIOCDELPRL (SIOCDEVPRIVATE + 6)
32#define SIOCCHGPRL (SIOCDEVPRIVATE + 7)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SIOCGET6RD (SIOCDEVPRIVATE + 8)
35#define SIOCADD6RD (SIOCDEVPRIVATE + 9)
36#define SIOCDEL6RD (SIOCDEVPRIVATE + 10)
37#define SIOCCHG6RD (SIOCDEVPRIVATE + 11)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define GRE_CSUM __cpu_to_be16(0x8000)
40#define GRE_ROUTING __cpu_to_be16(0x4000)
41#define GRE_KEY __cpu_to_be16(0x2000)
42#define GRE_SEQ __cpu_to_be16(0x1000)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define GRE_STRICT __cpu_to_be16(0x0800)
45#define GRE_REC __cpu_to_be16(0x0700)
46#define GRE_FLAGS __cpu_to_be16(0x00F8)
47#define GRE_VERSION __cpu_to_be16(0x0007)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct ip_tunnel_parm {
50 char name[IFNAMSIZ];
51 int link;
52 __be16 i_flags;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __be16 o_flags;
55 __be32 i_key;
56 __be32 o_key;
57 struct iphdr iph;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60enum {
61 IFLA_IPTUN_UNSPEC,
62 IFLA_IPTUN_LINK,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 IFLA_IPTUN_LOCAL,
65 IFLA_IPTUN_REMOTE,
66 IFLA_IPTUN_TTL,
67 IFLA_IPTUN_TOS,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 IFLA_IPTUN_ENCAP_LIMIT,
70 IFLA_IPTUN_FLOWINFO,
71 IFLA_IPTUN_FLAGS,
72 IFLA_IPTUN_PROTO,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 IFLA_IPTUN_PMTUDISC,
75 IFLA_IPTUN_6RD_PREFIX,
76 IFLA_IPTUN_6RD_RELAY_PREFIX,
77 IFLA_IPTUN_6RD_PREFIXLEN,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
80 __IFLA_IPTUN_MAX,
81};
82#define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1)
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SIT_ISATAP 0x0001
85struct ip_tunnel_prl {
86 __be32 addr;
87 __u16 flags;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 __u16 __reserved;
90 __u32 datalen;
91 __u32 __reserved2;
92};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define PRL_DEFAULT 0x0001
95struct ip_tunnel_6rd {
96 struct in6_addr prefix;
97 __be32 relay_prefix;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 __u16 prefixlen;
100 __u16 relay_prefixlen;
101};
102enum {
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 IFLA_GRE_UNSPEC,
105 IFLA_GRE_LINK,
106 IFLA_GRE_IFLAGS,
107 IFLA_GRE_OFLAGS,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 IFLA_GRE_IKEY,
110 IFLA_GRE_OKEY,
111 IFLA_GRE_LOCAL,
112 IFLA_GRE_REMOTE,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 IFLA_GRE_TTL,
115 IFLA_GRE_TOS,
116 IFLA_GRE_PMTUDISC,
117 IFLA_GRE_ENCAP_LIMIT,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 IFLA_GRE_FLOWINFO,
120 IFLA_GRE_FLAGS,
121 __IFLA_GRE_MAX,
122};
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1)
125#define VTI_ISVTI 0x0001
126enum {
127 IFLA_VTI_UNSPEC,
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 IFLA_VTI_LINK,
130 IFLA_VTI_IKEY,
131 IFLA_VTI_OKEY,
132 IFLA_VTI_LOCAL,
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 IFLA_VTI_REMOTE,
135 __IFLA_VTI_MAX,
136};
137#define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1)
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#endif
140