Sitelet https://github.com/iputils/iputils/pull/447
Skip to content

ping: decode unreachable codes added in RFC 4443 - #447

Closed
enrikb wants to merge 1 commit into
iputils:masterfrom
enrikb:proposed/add_support_for_new_rfc4443_icmpv6_unreachable_codes
Closed

enrikb wants to merge 1 commit into
iputils:masterfrom
enrikb:proposed/add_support_for_new_rfc4443_icmpv6_unreachable_codes

Conversation

@enrikb

@enrikb enrikb commented Jan 3, 2023 •

Copy link
Copy Markdown
Contributor

RFC 4443 added two new codes for ICMPv6 destination unreachable messages (type 1):

5 - Source address failed ingress/egress policy
6 - Reject route to destination

Before:

$ ping 2a03:4000:54:b9a::5
PING 2a03:4000:54:b9a::5(2a03:4000:54:b9a::5) 56 data bytes
From 2a03:4000:54:b9a::5 icmp_seq=1 Destination unreachable: Unknown code 6
From 2a03:4000:54:b9a::5 icmp_seq=2 Destination unreachable: Unknown code 6
From 2a03:4000:54:b9a::5 icmp_seq=3 Destination unreachable: Unknown code 6

After:

$ ping 2a03:4000:54:b9a::5
PING 2a03:4000:54:b9a::5(2a03:4000:54:b9a::5) 56 data bytes
From 2a03:4000:54:b9a::5 icmp_seq=1 Destination unreachable: Reject route to destination
From 2a03:4000:54:b9a::5 icmp_seq=2 Destination unreachable: Reject route to destination
From 2a03:4000:54:b9a::5 icmp_seq=3 Destination unreachable: Reject route to destination

Signed-off-by: Enrik Berkhan Enrik.Berkhan@inka.de

@enrikb
enrikb marked this pull request as draft January 3, 2023 20:17
RFC 4443 added two new codes for ICMPv6 destination unreachable messages
(type 1):

5 - Source address failed ingress/egress policy
6 - Reject route to destination

Before:

$ ping 2a03:4000:54:b9a::5
PING 2a03:4000:54:b9a::5(2a03:4000:54:b9a::5) 56 data bytes
From 2a03:4000:54:b9a::5 icmp_seq=1 Destination unreachable: Unknown code 6
From 2a03:4000:54:b9a::5 icmp_seq=2 Destination unreachable: Unknown code 6
From 2a03:4000:54:b9a::5 icmp_seq=3 Destination unreachable: Unknown code 6

After:

$ ping 2a03:4000:54:b9a::5
PING 2a03:4000:54:b9a::5(2a03:4000:54:b9a::5) 56 data bytes
From 2a03:4000:54:b9a::5 icmp_seq=1 Destination unreachable: Reject route to destination
From 2a03:4000:54:b9a::5 icmp_seq=2 Destination unreachable: Reject route to destination
From 2a03:4000:54:b9a::5 icmp_seq=3 Destination unreachable: Reject route to destination

Signed-off-by: Enrik Berkhan <Enrik.Berkhan@inka.de>
@enrikb
enrikb force-pushed the proposed/add_support_for_new_rfc4443_icmpv6_unreachable_codes branch from 0d6f291 to 6347b7f Compare January 3, 2023 20:31
@enrikb
enrikb marked this pull request as ready for review January 3, 2023 20:34
@pevik
pevik self-requested a review March 6, 2023 20:04
@pevik pevik added this to the next release milestone Mar 6, 2023
@pevik pevik closed this in c4c7d52 Mar 6, 2023
@pevik pevik self-assigned this Mar 6, 2023
@pevik
pevik removed their request for review March 6, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants