blob: 5a1d4fdc960ac79f5861f9b68d8b2e63e9cdc52a [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
52struct ipv6_rt_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054 __u8 nexthdr;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u8 hdrlen;
56 __u8 type;
57 __u8 segments_left;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080059};
Ben Cheng655a7c02013-10-16 16:09:24 -070060struct ipv6_opt_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080061 __u8 nexthdr;
62 __u8 hdrlen;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080064} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define ipv6_destopt_hdr ipv6_opt_hdr
66#define ipv6_hopopt_hdr ipv6_opt_hdr
67#define IPV6_OPT_ROUTERALERT_MLD 0x0000
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069struct rt0_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080070 struct ipv6_rt_hdr rt_hdr;
71 __u32 reserved;
72 struct in6_addr addr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074#define rt0_type rt_hdr.type
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76struct rt2_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080077 struct ipv6_rt_hdr rt_hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -080080 struct in6_addr addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define rt2_type rt_hdr.type
82};
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084struct ipv6_destopt_hao {
Tao Baod7db5942015-01-28 10:07:51 -080085 __u8 type;
86 __u8 length;
87 struct in6_addr addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070090struct ipv6hdr {
91#ifdef __LITTLE_ENDIAN_BITFIELD
Tao Baod7db5942015-01-28 10:07:51 -080092 __u8 priority : 4, version : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080094#elif defined(__BIG_ENDIAN_BITFIELD)
Tao Baod7db5942015-01-28 10:07:51 -080095 __u8 version : 4, priority : 4;
96#else
Ben Cheng655a7c02013-10-16 16:09:24 -070097#error "Please fix <asm/byteorder.h>"
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080099#endif
Tao Baod7db5942015-01-28 10:07:51 -0800100 __u8 flow_lbl[3];
101 __be16 payload_len;
102 __u8 nexthdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800104 __u8 hop_limit;
Tao Baod7db5942015-01-28 10:07:51 -0800105 struct in6_addr saddr;
106 struct in6_addr daddr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800109enum {
Tao Baod7db5942015-01-28 10:07:51 -0800110 DEVCONF_FORWARDING = 0,
111 DEVCONF_HOPLIMIT,
112 DEVCONF_MTU6,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800114 DEVCONF_ACCEPT_RA,
Tao Baod7db5942015-01-28 10:07:51 -0800115 DEVCONF_ACCEPT_REDIRECTS,
116 DEVCONF_AUTOCONF,
117 DEVCONF_DAD_TRANSMITS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800119 DEVCONF_RTR_SOLICITS,
Tao Baod7db5942015-01-28 10:07:51 -0800120 DEVCONF_RTR_SOLICIT_INTERVAL,
121 DEVCONF_RTR_SOLICIT_DELAY,
122 DEVCONF_USE_TEMPADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800124 DEVCONF_TEMP_VALID_LFT,
Tao Baod7db5942015-01-28 10:07:51 -0800125 DEVCONF_TEMP_PREFERED_LFT,
126 DEVCONF_REGEN_MAX_RETRY,
127 DEVCONF_MAX_DESYNC_FACTOR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800129 DEVCONF_MAX_ADDRESSES,
Tao Baod7db5942015-01-28 10:07:51 -0800130 DEVCONF_FORCE_MLD_VERSION,
131 DEVCONF_ACCEPT_RA_DEFRTR,
132 DEVCONF_ACCEPT_RA_PINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800134 DEVCONF_ACCEPT_RA_RTR_PREF,
Tao Baod7db5942015-01-28 10:07:51 -0800135 DEVCONF_RTR_PROBE_INTERVAL,
136 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN,
137 DEVCONF_PROXY_NDP,
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800139 DEVCONF_OPTIMISTIC_DAD,
Tao Baod7db5942015-01-28 10:07:51 -0800140 DEVCONF_ACCEPT_SOURCE_ROUTE,
141 DEVCONF_MC_FORWARDING,
142 DEVCONF_DISABLE_IPV6,
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800144 DEVCONF_ACCEPT_DAD,
Tao Baod7db5942015-01-28 10:07:51 -0800145 DEVCONF_FORCE_TLLAO,
146 DEVCONF_NDISC_NOTIFY,
147 DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL,
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800149 DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL,
Tao Baod7db5942015-01-28 10:07:51 -0800150 DEVCONF_SUPPRESS_FRAG_NDISC,
151 DEVCONF_ACCEPT_RA_FROM_LOCAL,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800152 DEVCONF_USE_OPTIMISTIC,
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 DEVCONF_ACCEPT_RA_MTU,
155 DEVCONF_STABLE_SECRET,
156 DEVCONF_USE_OIF_ADDRS_ONLY,
157 DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT,
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700160 DEVCONF_DROP_UNICAST_IN_L2_MULTICAST,
161 DEVCONF_DROP_UNSOLICITED_NA,
162 DEVCONF_KEEP_ADDR_ON_DOWN,
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 DEVCONF_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700165};
Ben Cheng655a7c02013-10-16 16:09:24 -0700166#endif