Skip to content

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

Closed

Conversation

mjpieters
Copy link
Contributor

@mjpieters mjpieters commented May 18, 2021

The two dropped networks are wholly contained inside of 2001::/23:

>>> 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.

https://bugs.python.org/issue44167

@mjpieters
Copy link
Contributor Author

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.

mjpieters and others added 2 commits May 19, 2021 00:22
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.
@mjpieters mjpieters force-pushed the bpo44167_ipaddress_ipv6private branch from cd31ae5 to 3b7ce0d Compare May 18, 2021 23:22
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jun 18, 2021
@mjpieters
Copy link
Contributor Author

Poking this to un-stale it. All it takes is a review!

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Jul 14, 2021
Copy link
Contributor

@MaxwellDupre MaxwellDupre left a 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.

@StanFromIreland StanFromIreland changed the title bpo-44167: Drop redundant IPv6 private subnets gh-88333: Drop redundant IPv6 private subnets Jul 18, 2025
@StanFromIreland
Copy link
Member

StanFromIreland commented Jul 18, 2025

After merging, I have realized that this is resolved already.

@mjpieters mjpieters deleted the bpo44167_ipaddress_ipv6private branch July 19, 2025 21:50
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.

7 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy