ICMPv4 Code Fields#
Type 0 — Echo Reply#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 1 — Unassigned#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 2 — Unassigned#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 3 — Destination Unreachable#
| Codes | Description | Reference |
|---|
| 0 | Net Unreachable | [RFC792] |
| 1 | Host Unreachable | [RFC792] |
| 2 | Protocol Unreachable | [RFC792] |
| 3 | Port Unreachable | [RFC792] |
| 4 | Fragmentation Needed and Don’t Fragment was Set | [RFC792] |
| 5 | Source Route Failed | [RFC792] |
| 6 | Destination Network Unknown | [RFC1122] |
| 7 | Destination Host Unknown | [RFC1122] |
| 8 | Source Host Isolated | [RFC1122] |
| 9 | Communication with Destination Network is Administratively Prohibited | [RFC1122] |
| 10 | Communication with Destination Host is Administratively Prohibited | [RFC1122] |
| 11 | Destination Network Unreachable for Type of Service | [RFC1122] |
| 12 | Destination Host Unreachable for Type of Service | [RFC1122] |
| 13 | Communication Administratively Prohibited | [RFC1812] |
| 14 | Host Precedence Violation | [RFC1812] |
| 15 | Precedence cutoff in effect | [RFC1812] |
Type 4 — Source Quench (Deprecated)#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 5 — Redirect#
| Codes | Description | Reference |
|---|
| 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 | |
Type 6 — Alternate Host Address (Deprecated)#
| Codes | Description | Reference |
|---|
| 0 | Alternate Address for Host | |
Type 7 — Unassigned#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 8 — Echo#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 9 — Router Advertisement#
| Codes | Description | Reference |
|---|
| 0 | Normal router advertisement | [RFC3344] |
| 16 | Does not route common traffic | [RFC3344] |
Type 10 — Router Selection#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 11 — Time Exceeded#
| Codes | Description | Reference |
|---|
| 0 | Time to Live exceeded in Transit | |
| 1 | Fragment Reassembly Time Exceeded | |
Type 12 — Parameter Problem#
| Codes | Description | Reference |
|---|
| 0 | Pointer indicates the error | |
| 1 | Missing a Required Option | [RFC1108] |
| 2 | Bad Length | |
Type 13 — Timestamp#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 14 — Timestamp Reply#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
| Codes | Description | Reference |
|---|
| 0 | No Code | |
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 17 — Address Mask Request (Deprecated)#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 18 — Address Mask Reply (Deprecated)#
| Codes | Description | Reference |
|---|
| 0 | No Code | |
Type 19 — Reserved (for Security)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Types 20-29 — Reserved (for Robustness Experiment)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 30 — Traceroute (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 31 — Datagram Conversion Error (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 32 — Mobile Host Redirect (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 33 — IPv6 Where-Are-You (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 34 — IPv6 I-Am-Here (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 35 — Mobile Registration Request (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 36 — Mobile Registration Reply (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 37 — Domain Name Request (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 38 — Domain Name Reply (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 39 — SKIP (Deprecated)#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 40 — Photuris#
| Codes | Description | Reference |
|---|
| 0 | Bad SPI | |
| 1 | Authentication Failed | |
| 2 | Decompression Failed | |
| 3 | Decryption Failed | |
| 4 | Need Authentication | |
| 5 | Need Authorization | |
Type 41 — ICMP messages utilized by experimental mobility protocols such as Seamoby#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 42 — Extended Echo Request#
| Codes | Description | Reference |
|---|
| 0 | No Error | [RFC8335] |
| 1-255 | Unassigned | |
Type 43 — Extended Echo Reply#
| Codes | Description | Reference |
|---|
| 0 | No Error | [RFC8335] |
| 1 | Malformed Query | [RFC8335] |
| 2 | No Such Interface | [RFC8335] |
| 3 | No Such Table Entry | [RFC8335] |
| 4 | Multiple Interfaces Satisfy Query | [RFC8335] |
| 5-255 | Unassigned | |
Types 44-252 — Unassigned#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 253 — RFC3692-style Experiment 1#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Type 254 — RFC3692-style Experiment 2#
| Codes | Description | Reference |
|---|
| No registrations at this time. | | |
Comment seems to stuck. Try to refresh?✨