blob: 3425f5adda4ce57d87b428e4e98401dedc10af16 [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
21#include <linux/types.h>
22#include <linux/in6.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <asm/byteorder.h>
25#define IPV6_MIN_MTU 1280
26struct in6_pktinfo {
Tao Baod7db5942015-01-28 10:07:51 -080027 struct in6_addr ipi6_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 int ipi6_ifindex;
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
31struct ip6_mtuinfo {
Tao Baod7db5942015-01-28 10:07:51 -080032 struct sockaddr_in6 ip6m_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u32 ip6m_mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
36struct in6_ifreq {
Tao Baod7db5942015-01-28 10:07:51 -080037 struct in6_addr ifr6_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 ifr6_prefixlen;
40 int ifr6_ifindex;
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42#define IPV6_SRCRT_STRICT 0x01
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define IPV6_SRCRT_TYPE_0 0
45#define IPV6_SRCRT_TYPE_2 2
46struct ipv6_rt_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080047 __u8 nexthdr;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u8 hdrlen;
50 __u8 type;
51 __u8 segments_left;
Ben Cheng655a7c02013-10-16 16:09:24 -070052};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54struct ipv6_opt_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080055 __u8 nexthdr;
56 __u8 hdrlen;
Ben Cheng655a7c02013-10-16 16:09:24 -070057} __attribute__((packed));
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define ipv6_destopt_hdr ipv6_opt_hdr
60#define ipv6_hopopt_hdr ipv6_opt_hdr
61#define IPV6_OPT_ROUTERALERT_MLD 0x0000
62struct rt0_hdr {
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 struct ipv6_rt_hdr rt_hdr;
65 __u32 reserved;
66 struct in6_addr addr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define rt0_type rt_hdr.type
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70struct rt2_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 */
Tao Baod7db5942015-01-28 10:07:51 -080074 struct in6_addr addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define rt2_type rt_hdr.type
76};
77struct ipv6_destopt_hao {
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u8 type;
80 __u8 length;
81 struct in6_addr addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070082} __attribute__((packed));
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84struct ipv6hdr {
85#ifdef __LITTLE_ENDIAN_BITFIELD
Tao Baod7db5942015-01-28 10:07:51 -080086 __u8 priority : 4, version : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -070087#elif defined(__BIG_ENDIAN_BITFIELD)
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 version : 4, priority : 4;
90#else
Ben Cheng655a7c02013-10-16 16:09:24 -070091#error "Please fix <asm/byteorder.h>"
92#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u8 flow_lbl[3];
95 __be16 payload_len;
96 __u8 nexthdr;
97 __u8 hop_limit;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 struct in6_addr saddr;
100 struct in6_addr daddr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 DEVCONF_FORWARDING = 0,
105 DEVCONF_HOPLIMIT,
106 DEVCONF_MTU6,
107 DEVCONF_ACCEPT_RA,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 DEVCONF_ACCEPT_REDIRECTS,
110 DEVCONF_AUTOCONF,
111 DEVCONF_DAD_TRANSMITS,
112 DEVCONF_RTR_SOLICITS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 DEVCONF_RTR_SOLICIT_INTERVAL,
115 DEVCONF_RTR_SOLICIT_DELAY,
116 DEVCONF_USE_TEMPADDR,
117 DEVCONF_TEMP_VALID_LFT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 DEVCONF_TEMP_PREFERED_LFT,
120 DEVCONF_REGEN_MAX_RETRY,
121 DEVCONF_MAX_DESYNC_FACTOR,
122 DEVCONF_MAX_ADDRESSES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 DEVCONF_FORCE_MLD_VERSION,
125 DEVCONF_ACCEPT_RA_DEFRTR,
126 DEVCONF_ACCEPT_RA_PINFO,
127 DEVCONF_ACCEPT_RA_RTR_PREF,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 DEVCONF_RTR_PROBE_INTERVAL,
130 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN,
131 DEVCONF_PROXY_NDP,
132 DEVCONF_OPTIMISTIC_DAD,
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 DEVCONF_ACCEPT_SOURCE_ROUTE,
135 DEVCONF_MC_FORWARDING,
136 DEVCONF_DISABLE_IPV6,
137 DEVCONF_ACCEPT_DAD,
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 DEVCONF_FORCE_TLLAO,
140 DEVCONF_NDISC_NOTIFY,
141 DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL,
142 DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL,
Christopher Ferris38062f92014-07-09 15:33:25 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 DEVCONF_SUPPRESS_FRAG_NDISC,
145 DEVCONF_ACCEPT_RA_FROM_LOCAL,
146 DEVCONF_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700147};
Tao Baod7db5942015-01-28 10:07:51 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149#endif