blob: 15bde3d8cd36534db43995ab512ca162f8c23d6d [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_LINUX_IN6_H
20#define _UAPI_LINUX_IN6_H
21#include <linux/types.h>
Christopher Ferris38062f92014-07-09 15:33:25 -070022#include <linux/libc-compat.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024#if __UAPI_DEF_IN6_ADDR
25struct in6_addr {
Tao Baod7db5942015-01-28 10:07:51 -080026 union {
27 __u8 u6_addr8[16];
Christopher Ferris38062f92014-07-09 15:33:25 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#if __UAPI_DEF_IN6_ADDR_ALT
Tao Baod7db5942015-01-28 10:07:51 -080030 __be16 u6_addr16[8];
31 __be32 u6_addr32[4];
Christopher Ferris38062f92014-07-09 15:33:25 -070032#endif
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 } in6_u;
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define s6_addr in6_u.u6_addr8
Christopher Ferris38062f92014-07-09 15:33:25 -070036#if __UAPI_DEF_IN6_ADDR_ALT
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define s6_addr16 in6_u.u6_addr16
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070039#define s6_addr32 in6_u.u6_addr32
40#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
Christopher Ferris38062f92014-07-09 15:33:25 -070042#endif
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#if __UAPI_DEF_SOCKADDR_IN6
Ben Cheng655a7c02013-10-16 16:09:24 -070045struct sockaddr_in6 {
Tao Baod7db5942015-01-28 10:07:51 -080046 unsigned short int sin6_family;
47 __be16 sin6_port;
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 __be32 sin6_flowinfo;
50 struct in6_addr sin6_addr;
51 __u32 sin6_scope_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070052};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070054#endif
55#if __UAPI_DEF_IPV6_MREQ
Ben Cheng655a7c02013-10-16 16:09:24 -070056struct ipv6_mreq {
Tao Baod7db5942015-01-28 10:07:51 -080057 struct in6_addr ipv6mr_multiaddr;
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 int ipv6mr_ifindex;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
Christopher Ferris38062f92014-07-09 15:33:25 -070061#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define ipv6mr_acaddr ipv6mr_multiaddr
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064struct in6_flowlabel_req {
Tao Baod7db5942015-01-28 10:07:51 -080065 struct in6_addr flr_dst;
66 __be32 flr_label;
67 __u8 flr_action;
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u8 flr_share;
70 __u16 flr_flags;
71 __u16 flr_expires;
72 __u16 flr_linger;
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u32 __flr_pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76#define IPV6_FL_A_GET 0
Ben Cheng655a7c02013-10-16 16:09:24 -070077#define IPV6_FL_A_PUT 1
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define IPV6_FL_A_RENEW 2
80#define IPV6_FL_F_CREATE 1
81#define IPV6_FL_F_EXCL 2
Christopher Ferris38062f92014-07-09 15:33:25 -070082#define IPV6_FL_F_REFLECT 4
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084#define IPV6_FL_F_REMOTE 8
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define IPV6_FL_S_NONE 0
86#define IPV6_FL_S_EXCL 1
87#define IPV6_FL_S_PROCESS 2
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089#define IPV6_FL_S_USER 3
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define IPV6_FL_S_ANY 255
91#define IPV6_FLOWINFO_FLOWLABEL 0x000fffff
92#define IPV6_FLOWINFO_PRIORITY 0x0ff00000
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094#define IPV6_PRIORITY_UNCHARACTERIZED 0x0000
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define IPV6_PRIORITY_FILLER 0x0100
96#define IPV6_PRIORITY_UNATTENDED 0x0200
97#define IPV6_PRIORITY_RESERVED1 0x0300
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099#define IPV6_PRIORITY_BULK 0x0400
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define IPV6_PRIORITY_RESERVED2 0x0500
101#define IPV6_PRIORITY_INTERACTIVE 0x0600
102#define IPV6_PRIORITY_CONTROL 0x0700
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104#define IPV6_PRIORITY_8 0x0800
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define IPV6_PRIORITY_9 0x0900
106#define IPV6_PRIORITY_10 0x0a00
107#define IPV6_PRIORITY_11 0x0b00
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109#define IPV6_PRIORITY_12 0x0c00
Ben Cheng655a7c02013-10-16 16:09:24 -0700110#define IPV6_PRIORITY_13 0x0d00
111#define IPV6_PRIORITY_14 0x0e00
112#define IPV6_PRIORITY_15 0x0f00
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114#if __UAPI_DEF_IPPROTO_V6
115#define IPPROTO_HOPOPTS 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700116#define IPPROTO_ROUTING 43
117#define IPPROTO_FRAGMENT 44
Christopher Ferris38062f92014-07-09 15:33:25 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119#define IPPROTO_ICMPV6 58
120#define IPPROTO_NONE 59
Ben Cheng655a7c02013-10-16 16:09:24 -0700121#define IPPROTO_DSTOPTS 60
122#define IPPROTO_MH 135
Christopher Ferris38062f92014-07-09 15:33:25 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700125#define IPV6_TLV_PAD1 0
126#define IPV6_TLV_PADN 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700127#define IPV6_TLV_ROUTERALERT 5
Christopher Ferris38062f92014-07-09 15:33:25 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129#define IPV6_TLV_JUMBO 194
130#define IPV6_TLV_HAO 201
131#define IPV6_ADDRFORM 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700132#define IPV6_2292PKTINFO 2
Christopher Ferris38062f92014-07-09 15:33:25 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134#define IPV6_2292HOPOPTS 3
135#define IPV6_2292DSTOPTS 4
136#define IPV6_2292RTHDR 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define IPV6_2292PKTOPTIONS 6
Christopher Ferris38062f92014-07-09 15:33:25 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139#define IPV6_CHECKSUM 7
140#define IPV6_2292HOPLIMIT 8
141#define IPV6_NEXTHOP 9
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define IPV6_AUTHHDR 10
Christopher Ferris38062f92014-07-09 15:33:25 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144#define IPV6_FLOWINFO 11
145#define IPV6_UNICAST_HOPS 16
146#define IPV6_MULTICAST_IF 17
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define IPV6_MULTICAST_HOPS 18
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149#define IPV6_MULTICAST_LOOP 19
150#define IPV6_ADD_MEMBERSHIP 20
151#define IPV6_DROP_MEMBERSHIP 21
Ben Cheng655a7c02013-10-16 16:09:24 -0700152#define IPV6_ROUTER_ALERT 22
Christopher Ferris38062f92014-07-09 15:33:25 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154#define IPV6_MTU_DISCOVER 23
155#define IPV6_MTU 24
156#define IPV6_RECVERR 25
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define IPV6_V6ONLY 26
Christopher Ferris38062f92014-07-09 15:33:25 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define IPV6_JOIN_ANYCAST 27
160#define IPV6_LEAVE_ANYCAST 28
161#define IPV6_PMTUDISC_DONT 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700162#define IPV6_PMTUDISC_WANT 1
Christopher Ferris38062f92014-07-09 15:33:25 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164#define IPV6_PMTUDISC_DO 2
165#define IPV6_PMTUDISC_PROBE 3
Christopher Ferris38062f92014-07-09 15:33:25 -0700166#define IPV6_PMTUDISC_INTERFACE 4
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700167#define IPV6_PMTUDISC_OMIT 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700169#define IPV6_FLOWLABEL_MGR 32
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define IPV6_FLOWINFO_SEND 33
171#define IPV6_IPSEC_POLICY 34
172#define IPV6_XFRM_POLICY 35
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700174#define IPV6_RECVPKTINFO 49
Ben Cheng655a7c02013-10-16 16:09:24 -0700175#define IPV6_PKTINFO 50
176#define IPV6_RECVHOPLIMIT 51
177#define IPV6_HOPLIMIT 52
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700179#define IPV6_RECVHOPOPTS 53
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define IPV6_HOPOPTS 54
181#define IPV6_RTHDRDSTOPTS 55
182#define IPV6_RECVRTHDR 56
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700184#define IPV6_RTHDR 57
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define IPV6_RECVDSTOPTS 58
186#define IPV6_DSTOPTS 59
187#define IPV6_RECVPATHMTU 60
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700189#define IPV6_PATHMTU 61
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define IPV6_DONTFRAG 62
191#define IPV6_RECVTCLASS 66
192#define IPV6_TCLASS 67
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800194#define IPV6_AUTOFLOWLABEL 70
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700195#define IPV6_ADDR_PREFERENCES 72
Ben Cheng655a7c02013-10-16 16:09:24 -0700196#define IPV6_PREFER_SRC_TMP 0x0001
197#define IPV6_PREFER_SRC_PUBLIC 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800199#define IPV6_PREFER_SRC_PUBTMP_DEFAULT 0x0100
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700200#define IPV6_PREFER_SRC_COA 0x0004
Ben Cheng655a7c02013-10-16 16:09:24 -0700201#define IPV6_PREFER_SRC_HOME 0x0400
202#define IPV6_PREFER_SRC_CGA 0x0008
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800204#define IPV6_PREFER_SRC_NONCGA 0x0800
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700205#define IPV6_MINHOPCOUNT 73
Ben Cheng655a7c02013-10-16 16:09:24 -0700206#define IPV6_ORIGDSTADDR 74
207#define IPV6_RECVORIGDSTADDR IPV6_ORIGDSTADDR
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800209#define IPV6_TRANSPARENT 75
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700210#define IPV6_UNICAST_IF 76
Ben Cheng655a7c02013-10-16 16:09:24 -0700211#endif