wire / wire-format / icmpv6
ICMPv6 is the IPv6 equivalent of ICMP. Header: type (1 byte), code (1 byte), checksum (2 bytes), then type-specific data. Common types: 128 echo request, 129 echo reply, 133 router solicitation, 134 router advertisement, 135 neighbor solicitation, 136 neighbor advertisement, 137 redirect.
aka: ICMPv6 header
spec: RFC 4443
ICMPv6 is the IPv6 equivalent of ICMP. Header: type (1 byte), code (1 byte), checksum (2 bytes), then type-specific data. Common types: 128 echo request, 129 echo reply, 133 router solicitation, 134 router advertisement, 135 neighbor solicitation, 136 neighbor advertisement, 137 redirect.
| field | size | meaning |
|---|---|---|
| Type | 1 byte | 128 echo request, 129 echo reply, 133 router solicitation, 134 router advertisement, 135 neighbor solicitation, 136 neighbor advertisement, 137 redirect, 1 (dest unreachable), 2 (packet too big), 3 (time exceeded), 4 (parameter problem). |
| Code | 1 byte | Sub-type (e.g., 0 = no route, 1 = admin prohibited, 2 = beyond scope, 3 = address unreachable, 4 = port unreachable for dest unreachable). |
| Checksum | 2 bytes | ICMPv6 checksum (covers the ICMPv6 message + IPv6 pseudo-header). |
| Body | variable | Type-specific data (e.g., identifier + sequence number for echo, or neighbor address for NS/NA). |
example:
80 00 00 00 00 01 00 01 48 65 6c 6c 6f
ICMPv6 echo request (type 128), code 0, id 1, seq 1, payload 'Hello'
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/icmpv6
or /wire-format/icmpv6.json