-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-88333: Drop redundant IPv6 private subnets #26209
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
Conversation
Looks like my PR was affected by https://www.githubstatus.com/incidents/m16jzl31gnqt; one of the Windows builds is still “pending” 12 hours later. I’ll see about a rebase and force-push tomorrow. |
The two dropped networks are wholly contained inside of 2001::/23: ```python >>> from ipaddress import IPv6Network >>> sub_tla_id = IPv6Network('2001::/23') >>> sub_tla_id.supernet_of(IPv6Network('2001:2::/48')) True >>> sub_tla_id.supernet_of(IPv6Network('2001:10::/28')) True ``` Any IP address that tests as private against either 2001:2::/48 or 2001:10::/28 will also test as private against 2001::/23, any IP address that is not part of 2001::/23 will also never be part of the other two.
cd31ae5
to
3b7ce0d
Compare
This PR is stale because it has been open for 30 days with no activity. |
Poking this to un-stale it. All it takes is a review! |
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.
Simple change is ok.
After merging, I have realized that this is resolved already. |
The two dropped networks are wholly contained inside of 2001::/23:
Any IP address that tests as private against either 2001:2::/48 or 2001:10::/28 will also test as private against 2001::/23, any IP address that is not part of 2001::/23 will also never be part of the other two.
https://bugs.python.org/issue44167