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 */ 49 struct 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 }; 60 enum { 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_ENCAP_TYPE, 81 IFLA_IPTUN_ENCAP_FLAGS, 82 IFLA_IPTUN_ENCAP_SPORT, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 IFLA_IPTUN_ENCAP_DPORT, 85 __IFLA_IPTUN_MAX, 86 }; 87 #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1) 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 enum tunnel_encap_types { 90 TUNNEL_ENCAP_NONE, 91 TUNNEL_ENCAP_FOU, 92 TUNNEL_ENCAP_GUE, 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 }; 95 #define TUNNEL_ENCAP_FLAG_CSUM (1 << 0) 96 #define TUNNEL_ENCAP_FLAG_CSUM6 (1 << 1) 97 #define TUNNEL_ENCAP_FLAG_REMCSUM (1 << 2) 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define SIT_ISATAP 0x0001 100 struct ip_tunnel_prl { 101 __be32 addr; 102 __u16 flags; 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 __u16 __reserved; 105 __u32 datalen; 106 __u32 __reserved2; 107 }; 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define PRL_DEFAULT 0x0001 110 struct ip_tunnel_6rd { 111 struct in6_addr prefix; 112 __be32 relay_prefix; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 __u16 prefixlen; 115 __u16 relay_prefixlen; 116 }; 117 enum { 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 IFLA_GRE_UNSPEC, 120 IFLA_GRE_LINK, 121 IFLA_GRE_IFLAGS, 122 IFLA_GRE_OFLAGS, 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 IFLA_GRE_IKEY, 125 IFLA_GRE_OKEY, 126 IFLA_GRE_LOCAL, 127 IFLA_GRE_REMOTE, 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 IFLA_GRE_TTL, 130 IFLA_GRE_TOS, 131 IFLA_GRE_PMTUDISC, 132 IFLA_GRE_ENCAP_LIMIT, 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 IFLA_GRE_FLOWINFO, 135 IFLA_GRE_FLAGS, 136 IFLA_GRE_ENCAP_TYPE, 137 IFLA_GRE_ENCAP_FLAGS, 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 IFLA_GRE_ENCAP_SPORT, 140 IFLA_GRE_ENCAP_DPORT, 141 IFLA_GRE_COLLECT_METADATA, 142 __IFLA_GRE_MAX, 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 }; 145 #define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1) 146 #define VTI_ISVTI ((__force __be16) 0x0001) 147 enum { 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 IFLA_VTI_UNSPEC, 150 IFLA_VTI_LINK, 151 IFLA_VTI_IKEY, 152 IFLA_VTI_OKEY, 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 IFLA_VTI_LOCAL, 155 IFLA_VTI_REMOTE, 156 __IFLA_VTI_MAX, 157 }; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 #define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1) 160 #endif 161