ICMPv6 (icmpv6)
- Layer: L3 (network)
- Header: 4 octets (fixed)
- Notes: Multicast control protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
ipv6 | next_header | 58 (0x3a) |
ipv6_hopopts | next_header | 58 (0x3a) |
ipv6_route | next_header | 58 (0x3a) |
ipv6_srh | next_header | 58 (0x3a) |
ipv6_frag | next_header | 58 (0x3a) |
ipv6_dstopts | next_header | 58 (0x3a) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
type | enum(8) | 128 (echo_request) | Protocol number of the next layer (see Next layer) | Message type. |
code | uint(8) | 0 | Message code, meaning depends on the type. | |
checksum | uint(16) | Internet checksum with pseudo header over the header and everything after it | Internet checksum with the IPv6 pseudo header over header and payload (Auto). |
type
| Value | Name |
|---|---|
| 1 (0x01) | destination_unreachable |
| 2 (0x02) | packet_too_big |
| 3 (0x03) | time_exceeded |
| 4 (0x04) | parameter_problem |
| 128 (0x80) | echo_request |
| 129 (0x81) | echo_reply |
| 130 (0x82) | mld_query |
| 131 (0x83) | mld_report |
| 132 (0x84) | mld_done |
| 133 (0x85) | router_solicitation |
| 134 (0x86) | router_advertisement |
| 135 (0x87) | neighbor_solicitation |
| 136 (0x88) | neighbor_advertisement |
| 137 (0x89) | redirect |
| 143 (0x8f) | mldv2_report |
Next layer
The next layer is selected by type; when the field is Auto the builder writes the value of the protocol stacked above.
| Value | Protocol | Note |
|---|---|---|
| 130 (0x82) | mldv2_query | at least 24 octets remaining |
| 128 (0x80) | icmpv6_echo | |
| 129 (0x81) | icmpv6_echo | |
| 130 (0x82) | mld | |
| 131 (0x83) | mld | |
| 132 (0x84) | mld | |
| 143 (0x8f) | mldv2_report | |
| 133 (0x85) | ndp_rs | |
| 134 (0x86) | ndp_ra | |
| 135 (0x87) | ndp_ns | |
| 136 (0x88) | ndp_na | |
| 137 (0x89) | ndp_redirect |
Constraints
| Level | Rule |
|---|---|
| warning | type within 1..255 |
Sample templates
- icmpv6-echo-request —
templates/protocols/l3/icmpv6-echo.wpg.yaml - ndp-neighbor-advertisement —
templates/protocols/l3/ndp-na.wpg.yaml - ndp-neighbor-solicitation —
templates/protocols/l3/ndp-ns.wpg.yaml - ndp-router-advertisement —
templates/protocols/l3/ndp-ra.wpg.yaml - ndp-redirect —
templates/protocols/l3/ndp-redirect.wpg.yaml - ndp-router-solicitation —
templates/protocols/l3/ndp-rs.wpg.yaml - mldv1-query —
templates/protocols/mcast/mldv1-query.wpg.yaml - mldv2-query —
templates/protocols/mcast/mldv2-query.wpg.yaml - mldv2-report —
templates/protocols/mcast/mldv2-report.wpg.yaml - scenario-ndp-ns-sweep —
templates/scenarios/ndp-ns-sweep.wpg.yaml - scenario-ipv6-ra-flood —
templates/scenarios/ra-flood.wpg.yaml