Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_IN6_H |
| 8 | #define _UAPI_LINUX_IN6_H |
| 9 | #include <linux/types.h> |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 10 | #include <linux/libc-compat.h> |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 11 | #if __UAPI_DEF_IN6_ADDR |
| 12 | struct in6_addr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 13 | union { |
| 14 | __u8 u6_addr8[16]; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 15 | #if __UAPI_DEF_IN6_ADDR_ALT |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 16 | __be16 u6_addr16[8]; |
| 17 | __be32 u6_addr32[4]; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 18 | #endif |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | } in6_u; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 20 | #define s6_addr in6_u.u6_addr8 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 21 | #if __UAPI_DEF_IN6_ADDR_ALT |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 22 | #define s6_addr16 in6_u.u6_addr16 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 23 | #define s6_addr32 in6_u.u6_addr32 |
| 24 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | }; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 26 | #endif |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 27 | #if __UAPI_DEF_SOCKADDR_IN6 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | struct sockaddr_in6 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | unsigned short int sin6_family; |
| 30 | __be16 sin6_port; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | __be32 sin6_flowinfo; |
| 32 | struct in6_addr sin6_addr; |
| 33 | __u32 sin6_scope_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | }; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 35 | #endif |
| 36 | #if __UAPI_DEF_IPV6_MREQ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 37 | struct ipv6_mreq { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 38 | struct in6_addr ipv6mr_multiaddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | int ipv6mr_ifindex; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | }; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 41 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | #define ipv6mr_acaddr ipv6mr_multiaddr |
| 43 | struct in6_flowlabel_req { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | struct in6_addr flr_dst; |
| 45 | __be32 flr_label; |
| 46 | __u8 flr_action; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | __u8 flr_share; |
| 48 | __u16 flr_flags; |
| 49 | __u16 flr_expires; |
| 50 | __u16 flr_linger; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | __u32 __flr_pad; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | }; |
| 53 | #define IPV6_FL_A_GET 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | #define IPV6_FL_A_PUT 1 |
| 55 | #define IPV6_FL_A_RENEW 2 |
| 56 | #define IPV6_FL_F_CREATE 1 |
| 57 | #define IPV6_FL_F_EXCL 2 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 58 | #define IPV6_FL_F_REFLECT 4 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 59 | #define IPV6_FL_F_REMOTE 8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | #define IPV6_FL_S_NONE 0 |
| 61 | #define IPV6_FL_S_EXCL 1 |
| 62 | #define IPV6_FL_S_PROCESS 2 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 63 | #define IPV6_FL_S_USER 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | #define IPV6_FL_S_ANY 255 |
| 65 | #define IPV6_FLOWINFO_FLOWLABEL 0x000fffff |
| 66 | #define IPV6_FLOWINFO_PRIORITY 0x0ff00000 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 67 | #define IPV6_PRIORITY_UNCHARACTERIZED 0x0000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | #define IPV6_PRIORITY_FILLER 0x0100 |
| 69 | #define IPV6_PRIORITY_UNATTENDED 0x0200 |
| 70 | #define IPV6_PRIORITY_RESERVED1 0x0300 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 71 | #define IPV6_PRIORITY_BULK 0x0400 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #define IPV6_PRIORITY_RESERVED2 0x0500 |
| 73 | #define IPV6_PRIORITY_INTERACTIVE 0x0600 |
| 74 | #define IPV6_PRIORITY_CONTROL 0x0700 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 75 | #define IPV6_PRIORITY_8 0x0800 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | #define IPV6_PRIORITY_9 0x0900 |
| 77 | #define IPV6_PRIORITY_10 0x0a00 |
| 78 | #define IPV6_PRIORITY_11 0x0b00 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 79 | #define IPV6_PRIORITY_12 0x0c00 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | #define IPV6_PRIORITY_13 0x0d00 |
| 81 | #define IPV6_PRIORITY_14 0x0e00 |
| 82 | #define IPV6_PRIORITY_15 0x0f00 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 83 | #if __UAPI_DEF_IPPROTO_V6 |
| 84 | #define IPPROTO_HOPOPTS 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 85 | #define IPPROTO_ROUTING 43 |
| 86 | #define IPPROTO_FRAGMENT 44 |
| 87 | #define IPPROTO_ICMPV6 58 |
| 88 | #define IPPROTO_NONE 59 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 89 | #define IPPROTO_DSTOPTS 60 |
| 90 | #define IPPROTO_MH 135 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 91 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 92 | #define IPV6_TLV_PAD1 0 |
| 93 | #define IPV6_TLV_PADN 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 94 | #define IPV6_TLV_ROUTERALERT 5 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 95 | #define IPV6_TLV_CALIPSO 7 |
Christopher Ferris | 2abfa9e | 2021-11-01 16:26:06 -0700 | [diff] [blame] | 96 | #define IPV6_TLV_IOAM 49 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 97 | #define IPV6_TLV_JUMBO 194 |
| 98 | #define IPV6_TLV_HAO 201 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 99 | #if __UAPI_DEF_IPV6_OPTIONS |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 100 | #define IPV6_ADDRFORM 1 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 101 | #define IPV6_2292PKTINFO 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 102 | #define IPV6_2292HOPOPTS 3 |
| 103 | #define IPV6_2292DSTOPTS 4 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 104 | #define IPV6_2292RTHDR 5 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 105 | #define IPV6_2292PKTOPTIONS 6 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 106 | #define IPV6_CHECKSUM 7 |
| 107 | #define IPV6_2292HOPLIMIT 8 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 108 | #define IPV6_NEXTHOP 9 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 109 | #define IPV6_AUTHHDR 10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | #define IPV6_FLOWINFO 11 |
| 111 | #define IPV6_UNICAST_HOPS 16 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 112 | #define IPV6_MULTICAST_IF 17 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 113 | #define IPV6_MULTICAST_HOPS 18 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 114 | #define IPV6_MULTICAST_LOOP 19 |
| 115 | #define IPV6_ADD_MEMBERSHIP 20 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 116 | #define IPV6_DROP_MEMBERSHIP 21 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 117 | #define IPV6_ROUTER_ALERT 22 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 118 | #define IPV6_MTU_DISCOVER 23 |
| 119 | #define IPV6_MTU 24 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 120 | #define IPV6_RECVERR 25 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 121 | #define IPV6_V6ONLY 26 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 122 | #define IPV6_JOIN_ANYCAST 27 |
| 123 | #define IPV6_LEAVE_ANYCAST 28 |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 124 | #define IPV6_MULTICAST_ALL 29 |
Christopher Ferris | 24f97eb | 2019-05-20 12:58:13 -0700 | [diff] [blame] | 125 | #define IPV6_ROUTER_ALERT_ISOLATE 30 |
Christopher Ferris | 25c18d4 | 2020-10-14 17:42:58 -0700 | [diff] [blame] | 126 | #define IPV6_RECVERR_RFC4884 31 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 127 | #define IPV6_PMTUDISC_DONT 0 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 128 | #define IPV6_PMTUDISC_WANT 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 129 | #define IPV6_PMTUDISC_DO 2 |
| 130 | #define IPV6_PMTUDISC_PROBE 3 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 131 | #define IPV6_PMTUDISC_INTERFACE 4 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 132 | #define IPV6_PMTUDISC_OMIT 5 |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 133 | #define IPV6_FLOWLABEL_MGR 32 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 134 | #define IPV6_FLOWINFO_SEND 33 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 135 | #define IPV6_IPSEC_POLICY 34 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 136 | #define IPV6_XFRM_POLICY 35 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 137 | #define IPV6_HDRINCL 36 |
Christopher Ferris | e01d32f | 2015-03-31 14:57:48 -0700 | [diff] [blame] | 138 | #endif |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 139 | #define IPV6_RECVPKTINFO 49 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 140 | #define IPV6_PKTINFO 50 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 141 | #define IPV6_RECVHOPLIMIT 51 |
| 142 | #define IPV6_HOPLIMIT 52 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 143 | #define IPV6_RECVHOPOPTS 53 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 144 | #define IPV6_HOPOPTS 54 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 145 | #define IPV6_RTHDRDSTOPTS 55 |
| 146 | #define IPV6_RECVRTHDR 56 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 147 | #define IPV6_RTHDR 57 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 148 | #define IPV6_RECVDSTOPTS 58 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 149 | #define IPV6_DSTOPTS 59 |
| 150 | #define IPV6_RECVPATHMTU 60 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 151 | #define IPV6_PATHMTU 61 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 152 | #define IPV6_DONTFRAG 62 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 153 | #define IPV6_RECVTCLASS 66 |
| 154 | #define IPV6_TCLASS 67 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 155 | #define IPV6_AUTOFLOWLABEL 70 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 156 | #define IPV6_ADDR_PREFERENCES 72 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 157 | #define IPV6_PREFER_SRC_TMP 0x0001 |
| 158 | #define IPV6_PREFER_SRC_PUBLIC 0x0002 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 159 | #define IPV6_PREFER_SRC_PUBTMP_DEFAULT 0x0100 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 160 | #define IPV6_PREFER_SRC_COA 0x0004 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 161 | #define IPV6_PREFER_SRC_HOME 0x0400 |
| 162 | #define IPV6_PREFER_SRC_CGA 0x0008 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 163 | #define IPV6_PREFER_SRC_NONCGA 0x0800 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 164 | #define IPV6_MINHOPCOUNT 73 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 165 | #define IPV6_ORIGDSTADDR 74 |
| 166 | #define IPV6_RECVORIGDSTADDR IPV6_ORIGDSTADDR |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 167 | #define IPV6_TRANSPARENT 75 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 168 | #define IPV6_UNICAST_IF 76 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 169 | #define IPV6_RECVFRAGSIZE 77 |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 170 | #define IPV6_FREEBIND 78 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 171 | #endif |