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