-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #42801: Properly shift bytes of IPv6 subnets
Prior to this change, IPv6 subnets generation was broken because of a bitwise shift overflowing uint64. To solve this issue, addIntToIP has been changed to take an addend and computes two ordinals applied to respectively the lower 64 bits and the upper 64 bits of IPv6 addresses. Nothing change for IPv4 (ie. upperOrdinal is always 0). Signed-off-by: Albin Kerouanton <albinker@gmail.com>
- Loading branch information
1 parent
79a477f
commit a2f5fed
Showing
2 changed files
with
89 additions
and
4 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