Home | History | Annotate | Download | only in linux
      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  ***
     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_ICMPV6_H
     20 #define _UAPI_LINUX_ICMPV6_H
     21 #include <linux/types.h>
     22 #include <asm/byteorder.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 struct icmp6hdr {
     25  __u8 icmp6_type;
     26  __u8 icmp6_code;
     27  __sum16 icmp6_cksum;
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  union {
     30  __be32 un_data32[1];
     31  __be16 un_data16[2];
     32  __u8 un_data8[4];
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  struct icmpv6_echo {
     35  __be16 identifier;
     36  __be16 sequence;
     37  } u_echo;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  struct icmpv6_nd_advt {
     40 #ifdef __LITTLE_ENDIAN_BITFIELD
     41  __u32 reserved:5,
     42  override:1,
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  solicited:1,
     45  router:1,
     46  reserved2:24;
     47 #elif defined(__BIG_ENDIAN_BITFIELD)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  __u32 router:1,
     50  solicited:1,
     51  override:1,
     52  reserved:29;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #else
     55 #error "Please fix <asm/byteorder.h>"
     56 #endif
     57  } u_nd_advt;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  struct icmpv6_nd_ra {
     60  __u8 hop_limit;
     61 #ifdef __LITTLE_ENDIAN_BITFIELD
     62  __u8 reserved:3,
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  router_pref:2,
     65  home_agent:1,
     66  other:1,
     67  managed:1;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #elif defined(__BIG_ENDIAN_BITFIELD)
     70  __u8 managed:1,
     71  other:1,
     72  home_agent:1,
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  router_pref:2,
     75  reserved:3;
     76 #else
     77 #error "Please fix <asm/byteorder.h>"
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #endif
     80  __be16 rt_lifetime;
     81  } u_nd_ra;
     82  } icmp6_dataun;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define icmp6_identifier icmp6_dataun.u_echo.identifier
     85 #define icmp6_sequence icmp6_dataun.u_echo.sequence
     86 #define icmp6_pointer icmp6_dataun.un_data32[0]
     87 #define icmp6_mtu icmp6_dataun.un_data32[0]
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define icmp6_unused icmp6_dataun.un_data32[0]
     90 #define icmp6_maxdelay icmp6_dataun.un_data16[0]
     91 #define icmp6_router icmp6_dataun.u_nd_advt.router
     92 #define icmp6_solicited icmp6_dataun.u_nd_advt.solicited
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define icmp6_override icmp6_dataun.u_nd_advt.override
     95 #define icmp6_ndiscreserved icmp6_dataun.u_nd_advt.reserved
     96 #define icmp6_hop_limit icmp6_dataun.u_nd_ra.hop_limit
     97 #define icmp6_addrconf_managed icmp6_dataun.u_nd_ra.managed
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define icmp6_addrconf_other icmp6_dataun.u_nd_ra.other
    100 #define icmp6_rt_lifetime icmp6_dataun.u_nd_ra.rt_lifetime
    101 #define icmp6_router_pref icmp6_dataun.u_nd_ra.router_pref
    102 };
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define ICMPV6_ROUTER_PREF_LOW 0x3
    105 #define ICMPV6_ROUTER_PREF_MEDIUM 0x0
    106 #define ICMPV6_ROUTER_PREF_HIGH 0x1
    107 #define ICMPV6_ROUTER_PREF_INVALID 0x2
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define ICMPV6_DEST_UNREACH 1
    110 #define ICMPV6_PKT_TOOBIG 2
    111 #define ICMPV6_TIME_EXCEED 3
    112 #define ICMPV6_PARAMPROB 4
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 #define ICMPV6_INFOMSG_MASK 0x80
    115 #define ICMPV6_ECHO_REQUEST 128
    116 #define ICMPV6_ECHO_REPLY 129
    117 #define ICMPV6_MGM_QUERY 130
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define ICMPV6_MGM_REPORT 131
    120 #define ICMPV6_MGM_REDUCTION 132
    121 #define ICMPV6_NI_QUERY 139
    122 #define ICMPV6_NI_REPLY 140
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 #define ICMPV6_MLD2_REPORT 143
    125 #define ICMPV6_DHAAD_REQUEST 144
    126 #define ICMPV6_DHAAD_REPLY 145
    127 #define ICMPV6_MOBILE_PREFIX_SOL 146
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define ICMPV6_MOBILE_PREFIX_ADV 147
    130 #define ICMPV6_NOROUTE 0
    131 #define ICMPV6_ADM_PROHIBITED 1
    132 #define ICMPV6_NOT_NEIGHBOUR 2
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 #define ICMPV6_ADDR_UNREACH 3
    135 #define ICMPV6_PORT_UNREACH 4
    136 #define ICMPV6_POLICY_FAIL 5
    137 #define ICMPV6_REJECT_ROUTE 6
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define ICMPV6_EXC_HOPLIMIT 0
    140 #define ICMPV6_EXC_FRAGTIME 1
    141 #define ICMPV6_HDR_FIELD 0
    142 #define ICMPV6_UNK_NEXTHDR 1
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define ICMPV6_UNK_OPTION 2
    145 #define ICMPV6_FILTER 1
    146 #define ICMPV6_FILTER_BLOCK 1
    147 #define ICMPV6_FILTER_PASS 2
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define ICMPV6_FILTER_BLOCKOTHERS 3
    150 #define ICMPV6_FILTER_PASSONLY 4
    151 struct icmp6_filter {
    152  __u32 data[8];
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 };
    155 #define MLD2_MODE_IS_INCLUDE 1
    156 #define MLD2_MODE_IS_EXCLUDE 2
    157 #define MLD2_CHANGE_TO_INCLUDE 3
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159 #define MLD2_CHANGE_TO_EXCLUDE 4
    160 #define MLD2_ALLOW_NEW_SOURCES 5
    161 #define MLD2_BLOCK_OLD_SOURCES 6
    162 #define MLD2_ALL_MCR_INIT { { { 0xff,0x02,0,0,0,0,0,0,0,0,0,0,0,0,0,0x16 } } }
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164 #endif
    165