1*cda5da8dSAndroid Build Coastguard Worker /* 2*cda5da8dSAndroid Build Coastguard Worker * This file is auto-generated. Modifications will be lost. 3*cda5da8dSAndroid Build Coastguard Worker * 4*cda5da8dSAndroid Build Coastguard Worker * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5*cda5da8dSAndroid Build Coastguard Worker * for more information. 6*cda5da8dSAndroid Build Coastguard Worker */ 7*cda5da8dSAndroid Build Coastguard Worker #ifndef _UAPI_LINUX_ICMPV6_H 8*cda5da8dSAndroid Build Coastguard Worker #define _UAPI_LINUX_ICMPV6_H 9*cda5da8dSAndroid Build Coastguard Worker #include <linux/types.h> 10*cda5da8dSAndroid Build Coastguard Worker #include <asm/byteorder.h> 11*cda5da8dSAndroid Build Coastguard Worker struct icmp6hdr { 12*cda5da8dSAndroid Build Coastguard Worker __u8 icmp6_type; 13*cda5da8dSAndroid Build Coastguard Worker __u8 icmp6_code; 14*cda5da8dSAndroid Build Coastguard Worker __sum16 icmp6_cksum; 15*cda5da8dSAndroid Build Coastguard Worker union { 16*cda5da8dSAndroid Build Coastguard Worker __be32 un_data32[1]; 17*cda5da8dSAndroid Build Coastguard Worker __be16 un_data16[2]; 18*cda5da8dSAndroid Build Coastguard Worker __u8 un_data8[4]; 19*cda5da8dSAndroid Build Coastguard Worker struct icmpv6_echo { 20*cda5da8dSAndroid Build Coastguard Worker __be16 identifier; 21*cda5da8dSAndroid Build Coastguard Worker __be16 sequence; 22*cda5da8dSAndroid Build Coastguard Worker } u_echo; 23*cda5da8dSAndroid Build Coastguard Worker struct icmpv6_nd_advt { 24*cda5da8dSAndroid Build Coastguard Worker #ifdef __LITTLE_ENDIAN_BITFIELD 25*cda5da8dSAndroid Build Coastguard Worker __u32 reserved : 5, override : 1, solicited : 1, router : 1, reserved2 : 24; 26*cda5da8dSAndroid Build Coastguard Worker #elif defined(__BIG_ENDIAN_BITFIELD) 27*cda5da8dSAndroid Build Coastguard Worker __u32 router : 1, solicited : 1, override : 1, reserved : 29; 28*cda5da8dSAndroid Build Coastguard Worker #else 29*cda5da8dSAndroid Build Coastguard Worker #error "Please fix <asm/byteorder.h>" 30*cda5da8dSAndroid Build Coastguard Worker #endif 31*cda5da8dSAndroid Build Coastguard Worker } u_nd_advt; 32*cda5da8dSAndroid Build Coastguard Worker struct icmpv6_nd_ra { 33*cda5da8dSAndroid Build Coastguard Worker __u8 hop_limit; 34*cda5da8dSAndroid Build Coastguard Worker #ifdef __LITTLE_ENDIAN_BITFIELD 35*cda5da8dSAndroid Build Coastguard Worker __u8 reserved : 3, router_pref : 2, home_agent : 1, other : 1, managed : 1; 36*cda5da8dSAndroid Build Coastguard Worker #elif defined(__BIG_ENDIAN_BITFIELD) 37*cda5da8dSAndroid Build Coastguard Worker __u8 managed : 1, other : 1, home_agent : 1, router_pref : 2, reserved : 3; 38*cda5da8dSAndroid Build Coastguard Worker #else 39*cda5da8dSAndroid Build Coastguard Worker #error "Please fix <asm/byteorder.h>" 40*cda5da8dSAndroid Build Coastguard Worker #endif 41*cda5da8dSAndroid Build Coastguard Worker __be16 rt_lifetime; 42*cda5da8dSAndroid Build Coastguard Worker } u_nd_ra; 43*cda5da8dSAndroid Build Coastguard Worker } icmp6_dataun; 44*cda5da8dSAndroid Build Coastguard Worker #define icmp6_identifier icmp6_dataun.u_echo.identifier 45*cda5da8dSAndroid Build Coastguard Worker #define icmp6_sequence icmp6_dataun.u_echo.sequence 46*cda5da8dSAndroid Build Coastguard Worker #define icmp6_pointer icmp6_dataun.un_data32[0] 47*cda5da8dSAndroid Build Coastguard Worker #define icmp6_mtu icmp6_dataun.un_data32[0] 48*cda5da8dSAndroid Build Coastguard Worker #define icmp6_unused icmp6_dataun.un_data32[0] 49*cda5da8dSAndroid Build Coastguard Worker #define icmp6_maxdelay icmp6_dataun.un_data16[0] 50*cda5da8dSAndroid Build Coastguard Worker #define icmp6_datagram_len icmp6_dataun.un_data8[0] 51*cda5da8dSAndroid Build Coastguard Worker #define icmp6_router icmp6_dataun.u_nd_advt.router 52*cda5da8dSAndroid Build Coastguard Worker #define icmp6_solicited icmp6_dataun.u_nd_advt.solicited 53*cda5da8dSAndroid Build Coastguard Worker #define icmp6_override icmp6_dataun.u_nd_advt.override 54*cda5da8dSAndroid Build Coastguard Worker #define icmp6_ndiscreserved icmp6_dataun.u_nd_advt.reserved 55*cda5da8dSAndroid Build Coastguard Worker #define icmp6_hop_limit icmp6_dataun.u_nd_ra.hop_limit 56*cda5da8dSAndroid Build Coastguard Worker #define icmp6_addrconf_managed icmp6_dataun.u_nd_ra.managed 57*cda5da8dSAndroid Build Coastguard Worker #define icmp6_addrconf_other icmp6_dataun.u_nd_ra.other 58*cda5da8dSAndroid Build Coastguard Worker #define icmp6_rt_lifetime icmp6_dataun.u_nd_ra.rt_lifetime 59*cda5da8dSAndroid Build Coastguard Worker #define icmp6_router_pref icmp6_dataun.u_nd_ra.router_pref 60*cda5da8dSAndroid Build Coastguard Worker }; 61*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ROUTER_PREF_LOW 0x3 62*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ROUTER_PREF_MEDIUM 0x0 63*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ROUTER_PREF_HIGH 0x1 64*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ROUTER_PREF_INVALID 0x2 65*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_DEST_UNREACH 1 66*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_PKT_TOOBIG 2 67*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_TIME_EXCEED 3 68*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_PARAMPROB 4 69*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ERRMSG_MAX 127 70*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_INFOMSG_MASK 0x80 71*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ECHO_REQUEST 128 72*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ECHO_REPLY 129 73*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MGM_QUERY 130 74*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MGM_REPORT 131 75*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MGM_REDUCTION 132 76*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_NI_QUERY 139 77*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_NI_REPLY 140 78*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MLD2_REPORT 143 79*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_DHAAD_REQUEST 144 80*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_DHAAD_REPLY 145 81*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MOBILE_PREFIX_SOL 146 82*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MOBILE_PREFIX_ADV 147 83*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MRDISC_ADV 151 84*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MRDISC_SOL 152 85*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_MSG_MAX 255 86*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_NOROUTE 0 87*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ADM_PROHIBITED 1 88*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_NOT_NEIGHBOUR 2 89*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_ADDR_UNREACH 3 90*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_PORT_UNREACH 4 91*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_POLICY_FAIL 5 92*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_REJECT_ROUTE 6 93*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_EXC_HOPLIMIT 0 94*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_EXC_FRAGTIME 1 95*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_HDR_FIELD 0 96*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_UNK_NEXTHDR 1 97*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_UNK_OPTION 2 98*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_HDR_INCOMP 3 99*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_EXT_ECHO_REQUEST 160 100*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_EXT_ECHO_REPLY 161 101*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_FILTER 1 102*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_FILTER_BLOCK 1 103*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_FILTER_PASS 2 104*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_FILTER_BLOCKOTHERS 3 105*cda5da8dSAndroid Build Coastguard Worker #define ICMPV6_FILTER_PASSONLY 4 106*cda5da8dSAndroid Build Coastguard Worker struct icmp6_filter { 107*cda5da8dSAndroid Build Coastguard Worker __u32 data[8]; 108*cda5da8dSAndroid Build Coastguard Worker }; 109*cda5da8dSAndroid Build Coastguard Worker #define MLD2_MODE_IS_INCLUDE 1 110*cda5da8dSAndroid Build Coastguard Worker #define MLD2_MODE_IS_EXCLUDE 2 111*cda5da8dSAndroid Build Coastguard Worker #define MLD2_CHANGE_TO_INCLUDE 3 112*cda5da8dSAndroid Build Coastguard Worker #define MLD2_CHANGE_TO_EXCLUDE 4 113*cda5da8dSAndroid Build Coastguard Worker #define MLD2_ALLOW_NEW_SOURCES 5 114*cda5da8dSAndroid Build Coastguard Worker #define MLD2_BLOCK_OLD_SOURCES 6 115*cda5da8dSAndroid Build Coastguard Worker #define MLD2_ALL_MCR_INIT { { { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x16 } } } 116*cda5da8dSAndroid Build Coastguard Worker #endif 117