Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ICMPv4 (icmpv4)

  • Layer: L3 (network)
  • Header: 8 octets (fixed)

Reached from

Lower layerSelectorValue
ipv4protocol1 (0x01)

Fields

FieldTypeDefaultAutoDescription
typeenum(8)8 (echo_request)Message type.
codeuint(8)0Message code, meaning depends on the type.
checksumuint(16)Internet checksum over the header and everything after itInternet checksum over header and payload (Auto).
restbytes(4)00 00 00 00Type-specific 4-byte “rest of header” field.

type

ValueName
0 (0x00)echo_reply
3 (0x03)destination_unreachable
4 (0x04)source_quench
5 (0x05)redirect
8 (0x08)echo_request
9 (0x09)router_advertisement
10 (0x0a)router_solicitation
11 (0x0b)time_exceeded
12 (0x0c)parameter_problem
13 (0x0d)timestamp_request
14 (0x0e)timestamp_reply
15 (0x0f)information_request
16 (0x10)information_reply
17 (0x11)address_mask_request
18 (0x12)address_mask_reply
42 (0x2a)extended_echo_request
43 (0x2b)extended_echo_reply

Constraints

LevelRule
warningtype within 0..43

Sample templates