-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recognise new IPv6 non-global range from IETF RFC 9602 #135745
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @joboet (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
This commit adds the 5f00::/16 range defined by RFC9602 to those ranges which Ipv6Addr::is_global recognises as a non-global IP. This range is used for Segment Routing (SRv6) SIDs.
3807f52
to
2352fcf
Compare
@@ -1773,6 +1775,8 @@ impl Ipv6Addr { | |||
&& !self.is_unspecified() | |||
&& !self.is_documentation() | |||
&& !self.is_benchmarking() | |||
// Segment Routing (SRv6) SIDs (`5f00::/16`) | |||
&& !matches!(self.segments(), [0x5f00, ..]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐃 I haven't changed this to something potentially more comprehensive like self.is_unicast() && !self.global()
since that would change behaviour for some other ranges, but it may be a good target for another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have a look and re-request review when this is ready.
@rustbot author
@rustbot label A-io |
This isn't my area of expertise, sorry... |
☔ The latest upstream changes (presumably #135937) made this pull request unmergeable. Please resolve the merge conflicts. |
This PR adds the
5f00::/16
range defined by IETF RFC 9602 to those ranges whichIpv6Addr::is_global
recognises as a non-global IP. This range is used for Segment Routing (SRv6) SIDs.See also: https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
Unstable tracking issue: #27709