Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 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, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 */ |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 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) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 97 | #define SIT_ISATAP 0x0001 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 99 | struct ip_tunnel_prl { |
| 100 | __be32 addr; |
| 101 | __u16 flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 102 | __u16 __reserved; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 104 | __u32 datalen; |
| 105 | __u32 __reserved2; |
| 106 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 107 | #define PRL_DEFAULT 0x0001 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 109 | struct ip_tunnel_6rd { |
| 110 | struct in6_addr prefix; |
| 111 | __be32 relay_prefix; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 112 | __u16 prefixlen; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 114 | __u16 relay_prefixlen; |
| 115 | }; |
| 116 | enum { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 117 | IFLA_GRE_UNSPEC, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 119 | IFLA_GRE_LINK, |
| 120 | IFLA_GRE_IFLAGS, |
| 121 | IFLA_GRE_OFLAGS, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 122 | IFLA_GRE_IKEY, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 124 | IFLA_GRE_OKEY, |
| 125 | IFLA_GRE_LOCAL, |
| 126 | IFLA_GRE_REMOTE, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 127 | IFLA_GRE_TTL, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 129 | IFLA_GRE_TOS, |
| 130 | IFLA_GRE_PMTUDISC, |
| 131 | IFLA_GRE_ENCAP_LIMIT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 132 | IFLA_GRE_FLOWINFO, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 134 | IFLA_GRE_FLAGS, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 135 | IFLA_GRE_ENCAP_TYPE, |
| 136 | IFLA_GRE_ENCAP_FLAGS, |
| 137 | IFLA_GRE_ENCAP_SPORT, |
| 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 139 | IFLA_GRE_ENCAP_DPORT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 140 | __IFLA_GRE_MAX, |
| 141 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 142 | #define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 144 | #define VTI_ISVTI ((__force __be16)0x0001) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 145 | enum { |
| 146 | IFLA_VTI_UNSPEC, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 147 | IFLA_VTI_LINK, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 149 | IFLA_VTI_IKEY, |
| 150 | IFLA_VTI_OKEY, |
| 151 | IFLA_VTI_LOCAL, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 152 | IFLA_VTI_REMOTE, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 154 | __IFLA_VTI_MAX, |
| 155 | }; |
| 156 | #define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 157 | #endif |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame^] | 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |