Go to the documentation of this file. 1 #ifndef _UAPI_LINUX_ICMPV6_H
2 #define _UAPI_LINUX_ICMPV6_H
4 #include <linux/types.h>
5 #include <asm/byteorder.h>
24 struct icmpv6_nd_advt {
25 #if defined(__LITTLE_ENDIAN_BITFIELD)
31 #elif defined(__BIG_ENDIAN_BITFIELD)
37 #error "Please fix <asm/byteorder.h>"
43 #if defined(__LITTLE_ENDIAN_BITFIELD)
50 #elif defined(__BIG_ENDIAN_BITFIELD)
57 #error "Please fix <asm/byteorder.h>"
64 #define icmp6_identifier icmp6_dataun.u_echo.identifier
65 #define icmp6_sequence icmp6_dataun.u_echo.sequence
66 #define icmp6_pointer icmp6_dataun.un_data32[0]
67 #define icmp6_mtu icmp6_dataun.un_data32[0]
68 #define icmp6_unused icmp6_dataun.un_data32[0]
69 #define icmp6_maxdelay icmp6_dataun.un_data16[0]
70 #define icmp6_router icmp6_dataun.u_nd_advt.router
71 #define icmp6_solicited icmp6_dataun.u_nd_advt.solicited
72 #define icmp6_override icmp6_dataun.u_nd_advt.override
73 #define icmp6_ndiscreserved icmp6_dataun.u_nd_advt.reserved
74 #define icmp6_hop_limit icmp6_dataun.u_nd_ra.hop_limit
75 #define icmp6_addrconf_managed icmp6_dataun.u_nd_ra.managed
76 #define icmp6_addrconf_other icmp6_dataun.u_nd_ra.other
77 #define icmp6_rt_lifetime icmp6_dataun.u_nd_ra.rt_lifetime
78 #define icmp6_router_pref icmp6_dataun.u_nd_ra.router_pref
82 #define ICMPV6_ROUTER_PREF_LOW 0x3
83 #define ICMPV6_ROUTER_PREF_MEDIUM 0x0
84 #define ICMPV6_ROUTER_PREF_HIGH 0x1
85 #define ICMPV6_ROUTER_PREF_INVALID 0x2
87 #define ICMPV6_DEST_UNREACH 1
88 #define ICMPV6_PKT_TOOBIG 2
89 #define ICMPV6_TIME_EXCEED 3
90 #define ICMPV6_PARAMPROB 4
92 #define ICMPV6_INFOMSG_MASK 0x80
94 #define ICMPV6_ECHO_REQUEST 128
95 #define ICMPV6_ECHO_REPLY 129
96 #define ICMPV6_MGM_QUERY 130
97 #define ICMPV6_MGM_REPORT 131
98 #define ICMPV6_MGM_REDUCTION 132
100 #define ICMPV6_NI_QUERY 139
101 #define ICMPV6_NI_REPLY 140
103 #define ICMPV6_MLD2_REPORT 143
105 #define ICMPV6_DHAAD_REQUEST 144
106 #define ICMPV6_DHAAD_REPLY 145
107 #define ICMPV6_MOBILE_PREFIX_SOL 146
108 #define ICMPV6_MOBILE_PREFIX_ADV 147
113 #define ICMPV6_NOROUTE 0
114 #define ICMPV6_ADM_PROHIBITED 1
115 #define ICMPV6_NOT_NEIGHBOUR 2
116 #define ICMPV6_ADDR_UNREACH 3
117 #define ICMPV6_PORT_UNREACH 4
122 #define ICMPV6_EXC_HOPLIMIT 0
123 #define ICMPV6_EXC_FRAGTIME 1
128 #define ICMPV6_HDR_FIELD 0
129 #define ICMPV6_UNK_NEXTHDR 1
130 #define ICMPV6_UNK_OPTION 2
136 #define ICMPV6_FILTER 1
142 #define ICMPV6_FILTER_BLOCK 1
143 #define ICMPV6_FILTER_PASS 2
144 #define ICMPV6_FILTER_BLOCKOTHERS 3
145 #define ICMPV6_FILTER_PASSONLY 4
154 #define MLD2_MODE_IS_INCLUDE 1
155 #define MLD2_MODE_IS_EXCLUDE 2
156 #define MLD2_CHANGE_TO_INCLUDE 3
157 #define MLD2_CHANGE_TO_EXCLUDE 4
158 #define MLD2_ALLOW_NEW_SOURCES 5
159 #define MLD2_BLOCK_OLD_SOURCES 6
161 #define MLD2_ALL_MCR_INIT { { { 0xff,0x02,0,0,0,0,0,0,0,0,0,0,0,0,0,0x16 } } }