Changeset efedee77 in mainline for uspace/lib/c/include/net/icmp_codes.h
- Timestamp:
- 2010-11-02T22:38:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af894a21
- Parents:
- aab02fb (diff), e06ef614 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/net/icmp_codes.h
raab02fb refedee77 27 27 */ 28 28 29 /** @addtogroup icmp29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 32 33 33 /** @file 34 * ICMP types and codes according to the on-line IANA - ICMP Type Numbers - <http://http://www.iana.org/assignments/icmp-parameters>, cited September 14 2009. 35 */ 36 37 #ifndef __NET_ICMP_CODES_H__ 38 #define __NET_ICMP_CODES_H__ 39 40 /** ICMP type type definition. 41 */ 42 typedef uint8_t icmp_type_t; 43 44 /** ICMP code type definition. 45 */ 46 typedef uint8_t icmp_code_t; 47 48 /** ICMP parameter type definition. 49 */ 50 typedef uint16_t icmp_param_t; 51 52 /** @name ICMP types definitions 53 */ 54 /*@{*/ 55 56 /** Echo Reply. 57 */ 34 * ICMP types and codes according to the on-line IANA - ICMP Type Numbers 35 * 36 * http://www.iana.org/assignments/icmp-parameters> 37 * 38 * cited September 14 2009. 39 */ 40 41 #ifndef LIBC_ICMP_CODES_H_ 42 #define LIBC_ICMP_CODES_H_ 43 44 #include <sys/types.h> 45 46 /** ICMP type type definition. */ 47 typedef uint8_t icmp_type_t; 48 49 /** ICMP code type definition. */ 50 typedef uint8_t icmp_code_t; 51 52 /** ICMP parameter type definition. */ 53 typedef uint16_t icmp_param_t; 54 55 /** @name ICMP types definitions */ 56 /*@{*/ 57 58 /** Echo Reply. */ 58 59 #define ICMP_ECHOREPLY 0 59 60 60 /** Destination Unreachable. 61 */ 61 /** Destination Unreachable. */ 62 62 #define ICMP_DEST_UNREACH 3 63 63 64 /** Source Quench. 65 */ 64 /** Source Quench. */ 66 65 #define ICMP_SOURCE_QUENCH 4 67 66 68 /** Redirect. 69 */ 67 /** Redirect. */ 70 68 #define ICMP_REDIRECT 5 71 69 72 /** Alternate Host Address. 73 */ 70 /** Alternate Host Address. */ 74 71 #define ICMP_ALTERNATE_ADDR 6 75 72 76 /** Echo Request. 77 */ 78 #define ICMP_ECHO 8 79 80 /** Router Advertisement. 81 */ 73 /** Echo Request. */ 74 #define ICMP_ECHO 8 75 76 /** Router Advertisement. */ 82 77 #define ICMP_ROUTER_ADV 9 83 78 84 /** Router solicitation. 85 */ 79 /** Router solicitation. */ 86 80 #define ICMP_ROUTER_SOL 10 87 81 88 /** Time Exceeded. 89 */ 82 /** Time Exceeded. */ 90 83 #define ICMP_TIME_EXCEEDED 11 91 84 92 /** Parameter Problem. 93 */ 85 /** Parameter Problem. */ 94 86 #define ICMP_PARAMETERPROB 12 95 87 96 /** Timestamp Request. 97 */ 88 /** Timestamp Request. */ 98 89 #define ICMP_TIMESTAMP 13 99 90 100 /** Timestamp Reply. 101 */ 91 /** Timestamp Reply. */ 102 92 #define ICMP_TIMESTAMPREPLY 14 103 93 104 /** Information Request. 105 */ 94 /** Information Request. */ 106 95 #define ICMP_INFO_REQUEST 15 107 96 108 /** Information Reply. 109 */ 97 /** Information Reply. */ 110 98 #define ICMP_INFO_REPLY 16 111 99 112 /** Address Mask Request. 113 */ 100 /** Address Mask Request. */ 114 101 #define ICMP_ADDRESS 17 115 102 116 /** Address Mask Reply. 117 */ 103 /** Address Mask Reply. */ 118 104 #define ICMP_ADDRESSREPLY 18 119 105 120 /** Traceroute. 121 */ 106 /** Traceroute. */ 122 107 #define ICMP_TRACEROUTE 30 123 108 124 /** Datagram Conversion Error. 125 */ 109 /** Datagram Conversion Error. */ 126 110 #define ICMP_CONVERSION_ERROR 31 127 111 128 /** Mobile Host Redirect. 129 */ 112 /** Mobile Host Redirect. */ 130 113 #define ICMP_REDIRECT_MOBILE 32 131 114 132 /** IPv6 Where-Are-You. 133 */ 115 /** IPv6 Where-Are-You. */ 134 116 #define ICMP_IPV6_WHERE_ARE_YOU 33 135 117 136 /** IPv6 I-Am-Here. 137 */ 118 /** IPv6 I-Am-Here. */ 138 119 #define ICMP_IPV6_I_AM_HERE 34 139 120 140 /** Mobile Registration Request. 141 */ 121 /** Mobile Registration Request. */ 142 122 #define ICMP_MOBILE_REQUEST 35 143 123 144 /** Mobile Registration Reply. 145 */ 124 /** Mobile Registration Reply. */ 146 125 #define ICMP_MOBILE_REPLY 36 147 126 148 /** Domain name request. 149 */ 127 /** Domain name request. */ 150 128 #define ICMP_DN_REQUEST 37 151 129 152 /** Domain name reply. 153 */ 130 /** Domain name reply. */ 154 131 #define ICMP_DN_REPLY 38 155 132 156 /** SKIP. 157 */ 158 #define ICMP_SKIP 39 159 160 /** Photuris. 161 */ 133 /** SKIP. */ 134 #define ICMP_SKIP 39 135 136 /** Photuris. */ 162 137 #define ICMP_PHOTURIS 40 163 138 … … 168 143 /*@{*/ 169 144 170 /** Network Unreachable. 171 */ 145 /** Network Unreachable. */ 172 146 #define ICMP_NET_UNREACH 0 173 147 174 /** Host Unreachable. 175 */ 148 /** Host Unreachable. */ 176 149 #define ICMP_HOST_UNREACH 1 177 150 178 /** Protocol Unreachable. 179 */ 151 /** Protocol Unreachable. */ 180 152 #define ICMP_PROT_UNREACH 2 181 153 182 /** Port Unreachable. 183 */ 154 /** Port Unreachable. */ 184 155 #define ICMP_PORT_UNREACH 3 185 156 186 /** Fragmentation needed but the Do Not Fragment bit was set. 187 */ 157 /** Fragmentation needed but the Do Not Fragment bit was set. */ 188 158 #define ICMP_FRAG_NEEDED 4 189 159 190 /** Source Route failed. 191 */ 160 /** Source Route failed. */ 192 161 #define ICMP_SR_FAILED 5 193 162 194 /** Destination network unknown. 195 */ 163 /** Destination network unknown. */ 196 164 #define ICMP_NET_UNKNOWN 6 197 165 198 /** Destination host unknown. 199 */ 166 /** Destination host unknown. */ 200 167 #define ICMP_HOST_UNKNOWN 7 201 168 202 /** Source host isolated (obsolete). 203 */ 169 /** Source host isolated (obsolete). */ 204 170 #define ICMP_HOST_ISOLATED 8 205 171 206 /** Destination network administratively prohibited. 207 */ 172 /** Destination network administratively prohibited. */ 208 173 #define ICMP_NET_ANO 9 209 174 210 /** Destination host administratively prohibited. 211 */ 175 /** Destination host administratively prohibited. */ 212 176 #define ICMP_HOST_ANO 10 213 177 214 /** Network unreachable for this type of service. 215 */ 178 /** Network unreachable for this type of service. */ 216 179 #define ICMP_NET_UNR_TOS 11 217 180 218 /** Host unreachable for this type of service. 219 */ 181 /** Host unreachable for this type of service. */ 220 182 #define ICMP_HOST_UNR_TOS 12 221 183 222 /** Communication administratively prohibited by filtering. 223 */ 184 /** Communication administratively prohibited by filtering. */ 224 185 #define ICMP_PKT_FILTERED 13 225 186 226 /** Host precedence violation. 227 */ 187 /** Host precedence violation. */ 228 188 #define ICMP_PREC_VIOLATION 14 229 189 230 /** Precedence cutoff in effect. 231 */ 190 /** Precedence cutoff in effect. */ 232 191 #define ICMP_PREC_CUTOFF 15 233 192 234 193 /*@}*/ 235 194 236 /** @name ICMP_REDIRECT codes definitions 237 */ 238 /*@{*/ 239 240 /** Network redirect (or subnet). 241 */ 195 /** @name ICMP_REDIRECT codes definitions */ 196 /*@{*/ 197 198 /** Network redirect (or subnet). */ 242 199 #define ICMP_REDIR_NET 0 243 200 244 /** Host redirect. 245 */ 201 /** Host redirect. */ 246 202 #define ICMP_REDIR_HOST 1 247 203 248 /** Network redirect for this type of service. 249 */ 204 /** Network redirect for this type of service. */ 250 205 #define ICMP_REDIR_NETTOS 2 251 206 252 /** Host redirect for this type of service. 253 */ 207 /** Host redirect for this type of service. */ 254 208 #define ICMP_REDIR_HOSTTOS 3 255 209 256 210 /*@}*/ 257 211 258 /** @name ICMP_ALTERNATE_ADDRESS codes definitions 259 */ 260 /*@{*/ 261 262 /** Alternate address for host. 263 */ 212 /** @name ICMP_ALTERNATE_ADDRESS codes definitions */ 213 /*@{*/ 214 215 /** Alternate address for host. */ 264 216 #define ICMP_ALTERNATE_HOST 0 265 217 266 218 /*@}*/ 267 219 268 /** @name ICMP_ROUTER_ADV codes definitions 269 */ 270 /*@{*/ 271 272 /** Normal router advertisement. 273 */ 220 /** @name ICMP_ROUTER_ADV codes definitions */ 221 /*@{*/ 222 223 /** Normal router advertisement. */ 274 224 #define ICMP_ROUTER_NORMAL 0 275 225 276 /** Does not route common traffic. 277 */ 226 /** Does not route common traffic. */ 278 227 #define ICMP_ROUTER_NO_NORMAL_TRAFFIC 16 279 228 280 229 /*@}*/ 281 230 282 /** @name ICMP_TIME_EXCEEDED codes definitions 283 */ 284 /*@{*/ 285 286 /** Transit TTL exceeded. 287 */ 231 /** @name ICMP_TIME_EXCEEDED codes definitions */ 232 /*@{*/ 233 234 /** Transit TTL exceeded. */ 288 235 #define ICMP_EXC_TTL 0 289 236 290 /** Reassembly TTL exceeded. 291 */ 237 /** Reassembly TTL exceeded. */ 292 238 #define ICMP_EXC_FRAGTIME 1 293 239 294 240 /*@}*/ 295 241 296 /** @name ICMP_PARAMETERPROB codes definitions 297 */ 298 /*@{*/ 299 300 /** Pointer indicates the error. 301 */ 242 /** @name ICMP_PARAMETERPROB codes definitions */ 243 /*@{*/ 244 245 /** Pointer indicates the error. */ 302 246 #define ICMP_PARAM_POINTER 0 303 247 304 /** Missing required option. 305 */ 248 /** Missing required option. */ 306 249 #define ICMP_PARAM_MISSING 1 307 250 308 /** Bad length. 309 */ 251 /** Bad length. */ 310 252 #define ICMP_PARAM_LENGTH 2 311 253 312 254 /*@}*/ 313 255 314 /** @name ICMP_PHOTURIS codes definitions 315 */ 316 /*@{*/ 317 318 /** Bad SPI. 319 */ 320 #define ICMP_PHOTURIS_BAD_SPI 0 321 322 /** Authentication failed. 323 */ 324 #define ICMP_PHOTURIS_AUTHENTICATION 1 325 326 /** Decompression failed. 327 */ 256 /** @name ICMP_PHOTURIS codes definitions */ 257 /*@{*/ 258 259 /** Bad SPI. */ 260 #define ICMP_PHOTURIS_BAD_SPI 0 261 262 /** Authentication failed. */ 263 #define ICMP_PHOTURIS_AUTHENTICATION 1 264 265 /** Decompression failed. */ 328 266 #define ICMP_PHOTURIS_DECOMPRESSION 2 329 267 330 /** Decryption failed. 331 */ 332 #define ICMP_PHOTURIS_DECRYPTION 3 333 334 /** Need authentication. 335 */ 268 /** Decryption failed. */ 269 #define ICMP_PHOTURIS_DECRYPTION 3 270 271 /** Need authentication. */ 336 272 #define ICMP_PHOTURIS_NEED_AUTHENTICATION 4 337 273 338 /** Need authorization. 339 */ 274 /** Need authorization. */ 340 275 #define ICMP_PHOTURIS_NEED_AUTHORIZATION 5 341 276
Note:
See TracChangeset
for help on using the changeset viewer.