Skip to content

Correlate ICMPv6 Parameter Problem replies - #160

Merged
lance0 merged 4 commits into
masterfrom
feat/ipv6-processing-errors
Oct 16, 2026
Merged

lance0 merged 4 commits into
masterfrom
feat/ipv6-processing-errors

Conversation

@lance0

@lance0 lance0 commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

ICMPv6 Parameter Problem (type 4) replies had no arm in parse_icmp_response_v6 / parse_icmp_response_v6_dgram, so a node rejecting a probe showed up as a timeout (* * *) instead of a responder.

Type 4 replies are now correlated to their probe like Time Exceeded and Destination Unreachable, as a new IcmpResponseType::ParameterProblem(code). A separate variant keeps code 4 out of the IPv4 Frag Needed / PMTUD path that DestUnreachable(4) takes. The 32-bit pointer field is never read as an RFC 4884 length and no extensions are parsed (RFC 4884 §4.6). The hop records the responder and RTT; the reply never marks the destination reached in live tracing and counts as a PMTUD failure, never a confirmed size. No serialized format changes.

Scope was trimmed from the original draft: ttl never sends IPv6 extension headers, so the RFC 8883 processing-limit codes and the new recording event weren't worth their weight.

Tests: ipv6_parameter_problem_correlates_without_extensions (dgram, raw and IPv6-header envelopes, wrong identifier rejected, a pointer that would otherwise parse as a valid MPLS extension) fails without the change; the PMTUD destination-echo test now also covers Parameter Problem from a router and from the target.

@lance0
lance0 changed the base branch from master to fix/icmp-extension-checksums October 16, 2026 04:18
@lance0
lance0 changed the base branch from fix/icmp-extension-checksums to master October 16, 2026 15:49
lance0 and others added 4 commits October 16, 2026 11:50
Parameter Problem (type 4) replies now correlate to their probe as
ParameterProblem(code), so the hop shows the responder instead of a
timeout. Their pointer field is never read as an RFC 4884 length and
no extensions are parsed (RFC 4884 section 4.6).

Drop the RFC 8883 Destination Unreachable code 8 handling, the
icmp_error recording event, the diagnostics in the TUI and reports,
and the quoted MTU-marker change.
A Parameter Problem, even from the destination, counts as a failed
PMTUD probe and never confirms a size.
@lance0
lance0 force-pushed the feat/ipv6-processing-errors branch from 8070f34 to debf12d Compare October 16, 2026 15:50
@lance0 lance0 changed the title Expose ICMPv6 parameter and processing-limit errors Correlate ICMPv6 Parameter Problem replies Oct 16, 2026
@lance0
lance0 marked this pull request as ready for review October 16, 2026 15:57
@lance0
lance0 merged commit f5d3918 into master Oct 16, 2026
7 checks passed
@lance0
lance0 deleted the feat/ipv6-processing-errors branch October 16, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant