blob: 08596939bf06c747b4ab2c7512695e199e55ea88 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_IPV6_H
20#define _UAPI_IPV6_H
Christopher Ferris05d08e92016-02-04 13:16:38 -080021#include <linux/libc-compat.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080024#include <linux/in6.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070025#include <asm/byteorder.h>
26#define IPV6_MIN_MTU 1280
Christopher Ferris05d08e92016-02-04 13:16:38 -080027#if __UAPI_DEF_IN6_PKTINFO
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029struct in6_pktinfo {
Tao Baod7db5942015-01-28 10:07:51 -080030 struct in6_addr ipi6_addr;
Tao Baod7db5942015-01-28 10:07:51 -080031 int ipi6_ifindex;
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
Christopher Ferris05d08e92016-02-04 13:16:38 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#endif
35#if __UAPI_DEF_IP6_MTUINFO
Ben Cheng655a7c02013-10-16 16:09:24 -070036struct ip6_mtuinfo {
Tao Baod7db5942015-01-28 10:07:51 -080037 struct sockaddr_in6 ip6m_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 ip6m_mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
Christopher Ferris05d08e92016-02-04 13:16:38 -080041#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070042struct in6_ifreq {
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044 struct in6_addr ifr6_addr;
Tao Baod7db5942015-01-28 10:07:51 -080045 __u32 ifr6_prefixlen;
46 int ifr6_ifindex;
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049#define IPV6_SRCRT_STRICT 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define IPV6_SRCRT_TYPE_0 0
51#define IPV6_SRCRT_TYPE_2 2
Christopher Ferris48af7cb2017-02-21 12:35:09 -080052#define IPV6_SRCRT_TYPE_4 4
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080054struct ipv6_rt_hdr {
Christopher Ferris05d08e92016-02-04 13:16:38 -080055 __u8 nexthdr;
Tao Baod7db5942015-01-28 10:07:51 -080056 __u8 hdrlen;
57 __u8 type;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080059 __u8 segments_left;
Christopher Ferris05d08e92016-02-04 13:16:38 -080060};
Ben Cheng655a7c02013-10-16 16:09:24 -070061struct ipv6_opt_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080062 __u8 nexthdr;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080064 __u8 hdrlen;
Christopher Ferris05d08e92016-02-04 13:16:38 -080065} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define ipv6_destopt_hdr ipv6_opt_hdr
67#define ipv6_hopopt_hdr ipv6_opt_hdr
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080069#define IPV6_OPT_ROUTERALERT_MLD 0x0000
Christopher Ferris05d08e92016-02-04 13:16:38 -080070struct rt0_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080071 struct ipv6_rt_hdr rt_hdr;
72 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080074 struct in6_addr addr[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -080075#define rt0_type rt_hdr.type
Ben Cheng655a7c02013-10-16 16:09:24 -070076};
77struct rt2_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080079 struct ipv6_rt_hdr rt_hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -080080 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -080081 struct in6_addr addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define rt2_type rt_hdr.type
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080084};
Christopher Ferris05d08e92016-02-04 13:16:38 -080085struct ipv6_destopt_hao {
Tao Baod7db5942015-01-28 10:07:51 -080086 __u8 type;
87 __u8 length;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080089 struct in6_addr addr;
Christopher Ferris05d08e92016-02-04 13:16:38 -080090} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070091struct ipv6hdr {
92#ifdef __LITTLE_ENDIAN_BITFIELD
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080094 __u8 priority : 4, version : 4;
Christopher Ferris05d08e92016-02-04 13:16:38 -080095#elif defined(__BIG_ENDIAN_BITFIELD)
Tao Baod7db5942015-01-28 10:07:51 -080096 __u8 version : 4, priority : 4;
97#else
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080099#error "Please fix <asm/byteorder.h>"
Christopher Ferris05d08e92016-02-04 13:16:38 -0800100#endif
Tao Baod7db5942015-01-28 10:07:51 -0800101 __u8 flow_lbl[3];
102 __be16 payload_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800104 __u8 nexthdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800105 __u8 hop_limit;
Tao Baod7db5942015-01-28 10:07:51 -0800106 struct in6_addr saddr;
107 struct in6_addr daddr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800109};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800110enum {
Tao Baod7db5942015-01-28 10:07:51 -0800111 DEVCONF_FORWARDING = 0,
112 DEVCONF_HOPLIMIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800114 DEVCONF_MTU6,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800115 DEVCONF_ACCEPT_RA,
Tao Baod7db5942015-01-28 10:07:51 -0800116 DEVCONF_ACCEPT_REDIRECTS,
117 DEVCONF_AUTOCONF,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800119 DEVCONF_DAD_TRANSMITS,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800120 DEVCONF_RTR_SOLICITS,
Tao Baod7db5942015-01-28 10:07:51 -0800121 DEVCONF_RTR_SOLICIT_INTERVAL,
122 DEVCONF_RTR_SOLICIT_DELAY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800124 DEVCONF_USE_TEMPADDR,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800125 DEVCONF_TEMP_VALID_LFT,
Tao Baod7db5942015-01-28 10:07:51 -0800126 DEVCONF_TEMP_PREFERED_LFT,
127 DEVCONF_REGEN_MAX_RETRY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800129 DEVCONF_MAX_DESYNC_FACTOR,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800130 DEVCONF_MAX_ADDRESSES,
Tao Baod7db5942015-01-28 10:07:51 -0800131 DEVCONF_FORCE_MLD_VERSION,
132 DEVCONF_ACCEPT_RA_DEFRTR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800134 DEVCONF_ACCEPT_RA_PINFO,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800135 DEVCONF_ACCEPT_RA_RTR_PREF,
Tao Baod7db5942015-01-28 10:07:51 -0800136 DEVCONF_RTR_PROBE_INTERVAL,
137 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800139 DEVCONF_PROXY_NDP,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800140 DEVCONF_OPTIMISTIC_DAD,
Tao Baod7db5942015-01-28 10:07:51 -0800141 DEVCONF_ACCEPT_SOURCE_ROUTE,
142 DEVCONF_MC_FORWARDING,
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800144 DEVCONF_DISABLE_IPV6,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800145 DEVCONF_ACCEPT_DAD,
Tao Baod7db5942015-01-28 10:07:51 -0800146 DEVCONF_FORCE_TLLAO,
147 DEVCONF_NDISC_NOTIFY,
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800149 DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800150 DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL,
Tao Baod7db5942015-01-28 10:07:51 -0800151 DEVCONF_SUPPRESS_FRAG_NDISC,
152 DEVCONF_ACCEPT_RA_FROM_LOCAL,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800154 DEVCONF_USE_OPTIMISTIC,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800155 DEVCONF_ACCEPT_RA_MTU,
156 DEVCONF_STABLE_SECRET,
157 DEVCONF_USE_OIF_ADDRS_ONLY,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800159 DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800160 DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700161 DEVCONF_DROP_UNICAST_IN_L2_MULTICAST,
162 DEVCONF_DROP_UNSOLICITED_NA,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800164 DEVCONF_KEEP_ADDR_ON_DOWN,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800165 DEVCONF_RTR_SOLICIT_MAX_INTERVAL,
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800166 DEVCONF_SEG6_ENABLED,
167 DEVCONF_SEG6_REQUIRE_HMAC,
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 DEVCONF_ENHANCED_DAD,
Tao Baod7db5942015-01-28 10:07:51 -0800170 DEVCONF_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700171};
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#endif
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */