31 #ifndef _USER_IP_ICMP_H_ 32 #define _USER_IP_ICMP_H_ 56 #if defined(__Userspace_os_Windows) 57 #pragma pack (push, 1) 61 u_int16_t icmp6_cksum;
63 u_int32_t icmp6_un_data32[1];
64 u_int16_t icmp6_un_data16[2];
65 u_int8_t icmp6_un_data8[4];
70 #define icmp6_data32 icmp6_dataun.icmp6_un_data32 71 #define icmp6_mtu icmp6_data32[0] 85 struct in_addr ih_gwaddr;
104 #define icmp_pptr icmp_hun.ih_pptr 105 #define icmp_gwaddr icmp_hun.ih_gwaddr 106 #define icmp_id icmp_hun.ih_idseq.icd_id 107 #define icmp_seq icmp_hun.ih_idseq.icd_seq 108 #define icmp_void icmp_hun.ih_void 109 #define icmp_pmvoid icmp_hun.ih_pmtu.ipm_void 110 #define icmp_nextmtu icmp_hun.ih_pmtu.ipm_nextmtu 111 #define icmp_num_addrs icmp_hun.ih_rtradv.irt_num_addrs 112 #define icmp_wpa icmp_hun.ih_rtradv.irt_wpa 113 #define icmp_lifetime icmp_hun.ih_rtradv.irt_lifetime 132 #define icmp_otime icmp_dun.id_ts.its_otime 133 #define icmp_rtime icmp_dun.id_ts.its_rtime 134 #define icmp_ttime icmp_dun.id_ts.its_ttime 135 #define icmp_ip icmp_dun.id_ip.idi_ip 136 #define icmp_radv icmp_dun.id_radv 137 #define icmp_mask icmp_dun.id_mask 138 #define icmp_data icmp_dun.id_data 149 #define ICMP_MINLEN 8 150 #define ICMP_TSLEN (8 + 3 * sizeof (uint32_t)) 151 #define ICMP_MASKLEN 12 152 #define ICMP_ADVLENMIN (8 + sizeof (struct ip) + 8) 153 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8) 159 #define ICMP_ECHOREPLY 0 160 #define ICMP_UNREACH 3 161 #define ICMP_UNREACH_NET 0 162 #define ICMP_UNREACH_HOST 1 163 #define ICMP_UNREACH_PROTOCOL 2 164 #define ICMP_UNREACH_PORT 3 165 #define ICMP_UNREACH_NEEDFRAG 4 166 #define ICMP_UNREACH_SRCFAIL 5 167 #define ICMP_UNREACH_NET_UNKNOWN 6 168 #define ICMP_UNREACH_HOST_UNKNOWN 7 169 #define ICMP_UNREACH_ISOLATED 8 170 #define ICMP_UNREACH_NET_PROHIB 9 171 #define ICMP_UNREACH_HOST_PROHIB 10 172 #define ICMP_UNREACH_TOSNET 11 173 #define ICMP_UNREACH_TOSHOST 12 174 #define ICMP_UNREACH_FILTER_PROHIB 13 175 #define ICMP_UNREACH_HOST_PRECEDENCE 14 176 #define ICMP_UNREACH_PRECEDENCE_CUTOFF 15 177 #define ICMP_SOURCEQUENCH 4 178 #define ICMP_REDIRECT 5 179 #define ICMP_REDIRECT_NET 0 180 #define ICMP_REDIRECT_HOST 1 181 #define ICMP_REDIRECT_TOSNET 2 182 #define ICMP_REDIRECT_TOSHOST 3 183 #define ICMP_ALTHOSTADDR 6 185 #define ICMP_ROUTERADVERT 9 186 #define ICMP_ROUTERADVERT_NORMAL 0 187 #define ICMP_ROUTERADVERT_NOROUTE_COMMON 16 188 #define ICMP_ROUTERSOLICIT 10 189 #define ICMP_TIMXCEED 11 190 #define ICMP_TIMXCEED_INTRANS 0 191 #define ICMP_TIMXCEED_REASS 1 192 #define ICMP_PARAMPROB 12 193 #define ICMP_PARAMPROB_ERRATPTR 0 194 #define ICMP_PARAMPROB_OPTABSENT 1 195 #define ICMP_PARAMPROB_LENGTH 2 196 #define ICMP_TSTAMP 13 197 #define ICMP_TSTAMPREPLY 14 199 #define ICMP_IREQREPLY 16 200 #define ICMP_MASKREQ 17 201 #define ICMP_MASKREPLY 18 202 #define ICMP_TRACEROUTE 30 203 #define ICMP_DATACONVERR 31 204 #define ICMP_MOBILE_REDIRECT 32 205 #define ICMP_IPV6_WHEREAREYOU 33 206 #define ICMP_IPV6_IAMHERE 34 207 #define ICMP_MOBILE_REGREQUEST 35 208 #define ICMP_MOBILE_REGREPLY 36 210 #define ICMP_PHOTURIS 40 211 #define ICMP_PHOTURIS_UNKNOWN_INDEX 1 212 #define ICMP_PHOTURIS_AUTH_FAILED 2 213 #define ICMP_PHOTURIS_DECRYPT_FAILED 3 215 #define ICMP_MAXTYPE 40 217 #define ICMP_INFOTYPE(type) \ 218 ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \ 219 (type) == ICMP_ROUTERADVERT || (type) == ICMP_ROUTERSOLICIT || \ 220 (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \ 221 (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \ 222 (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY) u_int16_t irt_lifetime
Definition: user_ip_icmp.h:101
unsigned int uint32_t
Definition: ptypes.h:105
Definition: user_ip_icmp.h:42
u_char icmp_type
Definition: user_ip_icmp.h:80
u_char icmp_code
Definition: user_ip_icmp.h:81
Definition: user_ip_icmp.h:79
u_int32_t id_mask
Definition: user_ip_icmp.h:129
uint16_t icd_id
Definition: user_ip_icmp.h:87
u_char ih_pptr
Definition: user_ip_icmp.h:84
unsigned short uint16_t
Definition: ptypes.h:97
int ih_void
Definition: user_ip_icmp.h:90
u_char icmp_code
Definition: user_ip_icmp.h:52
uint32_t its_rtime
Definition: user_ip_icmp.h:121
uint32_t its_ttime
Definition: user_ip_icmp.h:122
u_char irt_wpa
Definition: user_ip_icmp.h:100
uint16_t icd_seq
Definition: user_ip_icmp.h:88
u_int32_t ira_preference
Definition: user_ip_icmp.h:44
u_short icmp_cksum
Definition: user_ip_icmp.h:53
uint16_t ipm_void
Definition: user_ip_icmp.h:94
uint32_t its_otime
Definition: user_ip_icmp.h:120
u_char irt_num_addrs
Definition: user_ip_icmp.h:99
u_int32_t ira_addr
Definition: user_ip_icmp.h:43
u_short icmp_cksum
Definition: user_ip_icmp.h:82
Definition: user_ip_icmp.h:50
uint16_t ipm_nextmtu
Definition: user_ip_icmp.h:95
u_char icmp_type
Definition: user_ip_icmp.h:51