00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00041 #ifndef LIBC_ICMP_CODES_H_
00042 #define LIBC_ICMP_CODES_H_
00043
00044 #include <sys/types.h>
00045
00047 typedef uint8_t icmp_type_t;
00048
00050 typedef uint8_t icmp_code_t;
00051
00053 typedef uint16_t icmp_param_t;
00054
00057
00059 #define ICMP_ECHOREPLY 0
00060
00062 #define ICMP_DEST_UNREACH 3
00063
00065 #define ICMP_SOURCE_QUENCH 4
00066
00068 #define ICMP_REDIRECT 5
00069
00071 #define ICMP_ALTERNATE_ADDR 6
00072
00074 #define ICMP_ECHO 8
00075
00077 #define ICMP_ROUTER_ADV 9
00078
00080 #define ICMP_ROUTER_SOL 10
00081
00083 #define ICMP_TIME_EXCEEDED 11
00084
00086 #define ICMP_PARAMETERPROB 12
00087
00089 #define ICMP_TIMESTAMP 13
00090
00092 #define ICMP_TIMESTAMPREPLY 14
00093
00095 #define ICMP_INFO_REQUEST 15
00096
00098 #define ICMP_INFO_REPLY 16
00099
00101 #define ICMP_ADDRESS 17
00102
00104 #define ICMP_ADDRESSREPLY 18
00105
00107 #define ICMP_TRACEROUTE 30
00108
00110 #define ICMP_CONVERSION_ERROR 31
00111
00113 #define ICMP_REDIRECT_MOBILE 32
00114
00116 #define ICMP_IPV6_WHERE_ARE_YOU 33
00117
00119 #define ICMP_IPV6_I_AM_HERE 34
00120
00122 #define ICMP_MOBILE_REQUEST 35
00123
00125 #define ICMP_MOBILE_REPLY 36
00126
00128 #define ICMP_DN_REQUEST 37
00129
00131 #define ICMP_DN_REPLY 38
00132
00134 #define ICMP_SKIP 39
00135
00137 #define ICMP_PHOTURIS 40
00138
00144
00146 #define ICMP_NET_UNREACH 0
00147
00149 #define ICMP_HOST_UNREACH 1
00150
00152 #define ICMP_PROT_UNREACH 2
00153
00155 #define ICMP_PORT_UNREACH 3
00156
00158 #define ICMP_FRAG_NEEDED 4
00159
00161 #define ICMP_SR_FAILED 5
00162
00164 #define ICMP_NET_UNKNOWN 6
00165
00167 #define ICMP_HOST_UNKNOWN 7
00168
00170 #define ICMP_HOST_ISOLATED 8
00171
00173 #define ICMP_NET_ANO 9
00174
00176 #define ICMP_HOST_ANO 10
00177
00179 #define ICMP_NET_UNR_TOS 11
00180
00182 #define ICMP_HOST_UNR_TOS 12
00183
00185 #define ICMP_PKT_FILTERED 13
00186
00188 #define ICMP_PREC_VIOLATION 14
00189
00191 #define ICMP_PREC_CUTOFF 15
00192
00197
00199 #define ICMP_REDIR_NET 0
00200
00202 #define ICMP_REDIR_HOST 1
00203
00205 #define ICMP_REDIR_NETTOS 2
00206
00208 #define ICMP_REDIR_HOSTTOS 3
00209
00214
00216 #define ICMP_ALTERNATE_HOST 0
00217
00222
00224 #define ICMP_ROUTER_NORMAL 0
00225
00227 #define ICMP_ROUTER_NO_NORMAL_TRAFFIC 16
00228
00233
00235 #define ICMP_EXC_TTL 0
00236
00238 #define ICMP_EXC_FRAGTIME 1
00239
00244
00246 #define ICMP_PARAM_POINTER 0
00247
00249 #define ICMP_PARAM_MISSING 1
00250
00252 #define ICMP_PARAM_LENGTH 2
00253
00258
00260 #define ICMP_PHOTURIS_BAD_SPI 0
00261
00263 #define ICMP_PHOTURIS_AUTHENTICATION 1
00264
00266 #define ICMP_PHOTURIS_DECOMPRESSION 2
00267
00269 #define ICMP_PHOTURIS_DECRYPTION 3
00270
00272 #define ICMP_PHOTURIS_NEED_AUTHENTICATION 4
00273
00275 #define ICMP_PHOTURIS_NEED_AUTHORIZATION 5
00276
00279 #endif
00280