Skip to content

gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 #122793

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

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

sethmlarson
Copy link
Contributor

@sethmlarson sethmlarson commented Aug 7, 2024

This pull request makes all properties for IPv4-mapped IPv6 addresses use the mapped IPv4 address to determine the values.

@sethmlarson sethmlarson added type-security A security issue stdlib Python modules in the Lib dir labels Aug 7, 2024
@sethmlarson sethmlarson requested a review from gpshead August 7, 2024 15:46
@sethmlarson
Copy link
Contributor Author

Requesting @gpshead as a reviewer since you reviewed the previous PR that did the same for is_private.

@gpshead gpshead merged commit 76a1c5d into python:main Sep 7, 2024
36 checks passed
@gpshead gpshead added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Sep 7, 2024
@miss-islington-app
Copy link

Thanks @sethmlarson for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @sethmlarson for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 7, 2024
…with IPv4 (pythonGH-122793)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 7, 2024

GH-123814 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 7, 2024
…with IPv4 (pythonGH-122793)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Sep 7, 2024
@bedevere-app
Copy link

bedevere-app bot commented Sep 7, 2024

GH-123815 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 7, 2024
@gpshead gpshead added the needs backport to 3.11 only security fixes label Sep 7, 2024
@miss-islington-app
Copy link

Thanks @sethmlarson for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@gpshead gpshead added the needs backport to 3.10 only security fixes label Sep 7, 2024
@miss-islington-app
Copy link

Thanks @sethmlarson for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@gpshead gpshead added the needs backport to 3.9 only security fixes label Sep 7, 2024
@miss-islington-app
Copy link

Thanks @sethmlarson for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 7, 2024
…with IPv4 (pythonGH-122793)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 7, 2024

GH-123818 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Sep 7, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 7, 2024
…with IPv4 (pythonGH-122793)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
@miss-islington-app
Copy link

Sorry, @sethmlarson and @gpshead, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 76a1c5d18312712baed4699fe7333abb050ec9b7 3.9

@bedevere-app
Copy link

bedevere-app bot commented Sep 7, 2024

GH-123819 is a backport of this pull request to the 3.10 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.10 only security fixes label Sep 7, 2024
gpshead pushed a commit that referenced this pull request Sep 7, 2024
… with IPv4 (GH-122793) (GH-123814)

gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
@sethmlarson sethmlarson deleted the ipv4-mapped-props branch September 9, 2024 12:57
@picnixz
Copy link
Member

picnixz commented Sep 9, 2024

@sethmlarson The 3.9 backport failed so you'll need to create one manually. (My cherry-picker is dissident...)

ambv pushed a commit that referenced this pull request Dec 3, 2024
… with IPv4 (GH-122793) (GH-123815)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
ambv added a commit that referenced this pull request Dec 3, 2024
… with IPv4 (GH-122793) (GH-123818)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>

---------

Co-authored-by: Seth Michael Larson <[email protected]>
Co-authored-by: Łukasz Langa <[email protected]>
ambv added a commit that referenced this pull request Dec 3, 2024
… with IPv4 (GH-122793) (GH-123819)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

Co-authored-by: Seth Michael Larson <[email protected]>
Co-authored-by: Łukasz Langa <[email protected]>
ambv added a commit to ambv/cpython that referenced this pull request Dec 3, 2024
…s consistent with IPv4 (pythonGH-122793) (pythonGH-123819)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)

(cherry picked from commit b58da40)

Co-authored-by: Miss Islington (bot) <[email protected]>
Co-authored-by: Seth Michael Larson <[email protected]>
Co-authored-by: Łukasz Langa <[email protected]>
ambv added a commit that referenced this pull request Dec 3, 2024
…with IPv4 (GH-122793) (GH-123819) (GH-127571)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)
(cherry picked from commit b58da40)

Co-authored-by: Seth Michael Larson <[email protected]>
@terryjreedy terryjreedy removed the needs backport to 3.9 only security fixes label Feb 18, 2025
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull request Apr 9, 2025
…stent with IPv4 (pythonGH-122793) (pythonGH-123819) (pythonGH-127571)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d)
(cherry picked from commit b58da40)

Co-authored-by: Seth Michael Larson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants