Skip to content

gh-107205: Align IPv4-mapped IPv6 networks with the embedded IPv4 properties - #159417

Open
rajorin wants to merge 1 commit into
python:mainfrom
rajorin:gh-107205-ipv4-mapped-network
Open

rajorin wants to merge 1 commit into
python:mainfrom
rajorin:gh-107205-ipv4-mapped-network

Conversation

@rajorin

@rajorin rajorin commented Oct 14, 2026 •

Copy link
Copy Markdown

IPv4-mapped addresses already take is_private and is_global from the embedded IPv4 address, but IPv6Network still treated every subnet of ::ffff:0:0/96 as private. ip_network('::ffff:100.64.0.0') was therefore private while ip_address of the same address was neither private nor global.

Subnets strictly inside the mapped range now follow the embedded IPv4 network. ::ffff:0:0/96 itself stays an IPv6 special-purpose block.

#107205

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.

1 participant