Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 | *** |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 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 | *** |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _IPV6_H |
| 20 | #define _IPV6_H |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 21 | #include <linux/types.h> |
| 22 | #include <linux/in6.h> |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 24 | #include <asm/byteorder.h> |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 25 | #define IPV6_MIN_MTU 1280 |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 26 | struct in6_pktinfo { |
| 27 | struct in6_addr ipi6_addr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 29 | int ipi6_ifindex; |
| 30 | }; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 31 | struct ip6_mtuinfo { |
| 32 | struct sockaddr_in6 ip6m_addr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 34 | __u32 ip6m_mtu; |
| 35 | }; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 36 | struct in6_ifreq { |
| 37 | struct in6_addr ifr6_addr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 39 | __u32 ifr6_prefixlen; |
| 40 | int ifr6_ifindex; |
| 41 | }; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 42 | #define IPV6_SRCRT_STRICT 0x01 |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 44 | #define IPV6_SRCRT_TYPE_0 0 |
| 45 | #define IPV6_SRCRT_TYPE_2 2 |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 46 | struct ipv6_rt_hdr { |
| 47 | __u8 nexthdr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 49 | __u8 hdrlen; |
| 50 | __u8 type; |
| 51 | __u8 segments_left; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 52 | }; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 54 | struct ipv6_opt_hdr { |
| 55 | __u8 nexthdr; |
| 56 | __u8 hdrlen; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 57 | } __attribute__((packed)); |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 59 | #define ipv6_destopt_hdr ipv6_opt_hdr |
| 60 | #define ipv6_hopopt_hdr ipv6_opt_hdr |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 61 | struct rt0_hdr { |
| 62 | struct ipv6_rt_hdr rt_hdr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 64 | __u32 reserved; |
| 65 | struct in6_addr addr[0]; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 66 | #define rt0_type rt_hdr.type |
| 67 | }; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 69 | struct rt2_hdr { |
| 70 | struct ipv6_rt_hdr rt_hdr; |
| 71 | __u32 reserved; |
| 72 | struct in6_addr addr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 74 | #define rt2_type rt_hdr.type |
| 75 | }; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 76 | struct ipv6_destopt_hao { |
| 77 | __u8 type; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 79 | __u8 length; |
| 80 | struct in6_addr addr; |
| 81 | } __attribute__((packed)); |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 82 | struct ipv6hdr { |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 84 | #ifdef __LITTLE_ENDIAN_BITFIELD |
| 85 | __u8 priority:4, |
| 86 | version:4; |
| 87 | #elif defined(__BIG_ENDIAN_BITFIELD) |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 89 | __u8 version:4, |
| 90 | priority:4; |
| 91 | #else |
| 92 | #error "Please fix <asm/byteorder.h>" |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 94 | #endif |
| 95 | __u8 flow_lbl[3]; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 96 | __be16 payload_len; |
| 97 | __u8 nexthdr; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 99 | __u8 hop_limit; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 100 | struct in6_addr saddr; |
| 101 | struct in6_addr daddr; |
| 102 | }; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 104 | enum { |
| 105 | DEVCONF_FORWARDING = 0, |
| 106 | DEVCONF_HOPLIMIT, |
| 107 | DEVCONF_MTU6, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 109 | DEVCONF_ACCEPT_RA, |
| 110 | DEVCONF_ACCEPT_REDIRECTS, |
| 111 | DEVCONF_AUTOCONF, |
| 112 | DEVCONF_DAD_TRANSMITS, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 114 | DEVCONF_RTR_SOLICITS, |
| 115 | DEVCONF_RTR_SOLICIT_INTERVAL, |
| 116 | DEVCONF_RTR_SOLICIT_DELAY, |
| 117 | DEVCONF_USE_TEMPADDR, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 119 | DEVCONF_TEMP_VALID_LFT, |
| 120 | DEVCONF_TEMP_PREFERED_LFT, |
| 121 | DEVCONF_REGEN_MAX_RETRY, |
| 122 | DEVCONF_MAX_DESYNC_FACTOR, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 124 | DEVCONF_MAX_ADDRESSES, |
| 125 | DEVCONF_FORCE_MLD_VERSION, |
| 126 | DEVCONF_ACCEPT_RA_DEFRTR, |
| 127 | DEVCONF_ACCEPT_RA_PINFO, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 129 | DEVCONF_ACCEPT_RA_RTR_PREF, |
| 130 | DEVCONF_RTR_PROBE_INTERVAL, |
| 131 | DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN, |
| 132 | DEVCONF_PROXY_NDP, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 134 | DEVCONF_OPTIMISTIC_DAD, |
| 135 | DEVCONF_ACCEPT_SOURCE_ROUTE, |
| 136 | DEVCONF_MC_FORWARDING, |
| 137 | DEVCONF_DISABLE_IPV6, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 139 | DEVCONF_ACCEPT_DAD, |
| 140 | DEVCONF_FORCE_TLLAO, |
| 141 | DEVCONF_MAX |
| 142 | }; |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 144 | #endif |