Skip to content

Detect embedded IPv4 in non-canonical 6to4 addresses#110

Open
zanbaldwin wants to merge 1 commit into
6.xfrom
z/derived
Open

Detect embedded IPv4 in non-canonical 6to4 addresses#110
zanbaldwin wants to merge 1 commit into
6.xfrom
z/derived

Conversation

@zanbaldwin
Copy link
Copy Markdown
Member

Derived::isEmbedded() only matched canonical 6to4 addresses with the trailing 80 bits zeroed, even though every address within 2002::/16 carries an IPv4 address in bits 16-47, as per RFC 3056. Widen detection to the whole 6to4 block; extraction keeps only the embedded IPv4 address, so an extract-pack round-trip reconstructs the canonical form (2002:XXXX:XXXX::) rather than the original.

`Derived::isEmbedded()` only matched canonical 6to4 addresses with the trailing 80 bits zeroed, even though every address within `2002::/16` carries an IPv4 address in bits 16-47, as per RFC 3056.
Widen detection to the whole 6to4 block; extraction keeps only the embedded IPv4 address, so an extract-pack round-trip reconstructs the canonical form (`2002:XXXX:XXXX::`) rather than the original.
@zanbaldwin zanbaldwin self-assigned this Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant