-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use :: in IPv6 addresses without zero-collapsing
Addresses that do not contain a sequence of two or more zero-words should not contain the zero-collapse marker (::). Rather than adding a special case in the output generation code for this, this patch adds a branch to a code block that simply outputs 8 words, separated by ':'. The testcase has been expanded to contain at least one of each possible case: leading collapsible zero-words, collapsible zero-words in the middle, trailing collapsible zero-words, addresses without zero-words. Reported-by: Eugene Loh <eugene.loh@oracle.com> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
4 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
fe80:7060:5040:3080:3214:4fff:fe0b::76c8 | ||
fe80:7060:5040:3080:3214:4fff:fe0b:76c8 | ||
1080::808:c:417a | ||
::1 | ||
:: | ||
|