Appendix D - ICMP Type and Code Numbers
Appendix D - ICMP Type and Code Numbers
and Security
Appendix D:
ICMP Type and
Code Numbers
Wireshark University
The Internet Control Message Protocol (ICMP) has many messages that
are identified by a "type" field.
Many of these ICMP types have a "code" field. Here we list the types
again with their assigned code fields.
Codes
0 No Code
1 Unassigned [JBP]
2 Unassigned [JBP]
Codes
0 Net Unreachable
1 Host Unreachable
2 Protocol Unreachable
3 Port Unreachable
4 Fragmentation Needed and Don't Fragment was Set
5 Source Route Failed
6 Destination Network Unknown
7 Destination Host Unknown
8 Source Host Isolated
9 Communication with Destination Network is
Administratively Prohibited
10 Communication with Destination Host is
Administratively Prohibited
11 Destination Network Unreachable for Type of Service
12 Destination Host Unreachable for Type of Service
13 Communication Administratively Prohibited [RFC1812]
14 Host Precedence Violation [RFC1812]
15 Precedence cutoff in effect [RFC1812]
5 Redirect [RFC792]
Codes
0 Redirect Datagram for the Network (or subnet)
1 Redirect Datagram for the Host
2 Redirect Datagram for the Type of Service and Network
3 Redirect Datagram for the Type of Service and Host
Codes
0 Alternate Address for Host
7 Unassigned [JBP]
8 Echo [RFC792]
Codes
0 No Code
Codes
0 Normal router advertisement
16 Does not route common traffic [RFC2002]
Codes
0 No Code
Codes
0 Time to Live exceeded in Transit
1 Fragment Reassembly Time Exceeded
Codes
0 Pointer indicates the error
1 Missing a Required Option [RFC1108]
2 Bad Length
13 Timestamp [RFC792]
Codes
0 No Code
Codes
0 No Code
Codes
0 No Code
Codes
0 No Code
Codes
0 No Code
Codes
0 No Code
30 Traceroute [RFC1393]
39 SKIP [Markson]
40 Photuris [RFC2521]
Codes
0 = Bad SPI
1 = Authentication Failed
2 = Decompression Failed
3 = Decryption Failed
4 = Need Authentication
5 = Need Authorization
41-252 Unassigned
REFERENCES
----------
[RFC792] Postel, J., "Internet Control Message Protocol", STD 5,
RFC 792, USC/Information Sciences Institute, September 1981.
[RFC1475] Ullmann, R., "TP/IX: The Next Internet", RFC 1475, Process
Software Corporation, June 1993.
PEOPLE
------
[JBP] Jon Postel, <[email protected]>, September 1995.
[David Johnson]
[Solo]