Skip to content

IPv6: Add more check to avoid multiple double colon and illegal char#753

Merged
vathpela merged 1 commit intorhboot:mainfrom
dennis-tseng99:ipv6
Jun 3, 2025
Merged

IPv6: Add more check to avoid multiple double colon and illegal char#753
vathpela merged 1 commit intorhboot:mainfrom
dennis-tseng99:ipv6

Conversation

@dennis-tseng99
Copy link
Contributor

More than one double-colon in ipv6 address format is invalid. For example, the IPv6 address 2400::dd00::1 is invalid because it uses the :: (double colon) more than once, which is not allowed. This makes the address ambiguous: there's no way to know how many zero blocks each :: is supposed to compress. The IPv6 standard (RFC 4291) explicitly allows only one :: in an address.

Besides, the valid ipv6 characters only cover 0–9, a–f, and A–F

More than one double-colon in ipv6 address format is invalid.
For example, the IPv6 address 2400::dd00::1 is invalid because
it uses the :: (double colon) more than once, which is not allowed.
This makes the address ambiguous: there's no way to know how many zero blocks
each :: is supposed to compress. The IPv6 standard (RFC 4291) explicitly allows
only one :: in an address.

Besides, the valid ipv6 characters only include  0–9, a–f, and A–F

Signed-off-by: Dennis Tseng <dennis.tseng@suse.com>
@vathpela vathpela merged commit 431d370 into rhboot:main Jun 3, 2025
20 checks passed
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.

2 participants