-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Incorrect IP Address range calculation when using /0 prefix #484
Comments
mbcdev
added a commit
to mbcdev/libtins
that referenced
this issue
Aug 26, 2022
…tanini#484) According to the C/C++ Standard, for shift operations, the behavior is undefined if the right operand is equal to the width of the promoted left operand. On a 64-bit Windows machine, this causes IP addresses 0.0.0.0 and 255.255.255.255 to have the same internal representation, leading to various issues when using a /0 prefix.
Reason: see #486 for fix proposal |
mfontanini
pushed a commit
that referenced
this issue
Aug 30, 2022
#486) According to the C/C++ Standard, for shift operations, the behavior is undefined if the right operand is equal to the width of the promoted left operand. On a 64-bit Windows machine, this causes IP addresses 0.0.0.0 and 255.255.255.255 to have the same internal representation, leading to various issues when using a /0 prefix.
merged, closing issue |
laudrup
pushed a commit
to laudrup/libtins
that referenced
this issue
Nov 23, 2022
…tanini#484) (mfontanini#486) According to the C/C++ Standard, for shift operations, the behavior is undefined if the right operand is equal to the width of the promoted left operand. On a 64-bit Windows machine, this causes IP addresses 0.0.0.0 and 255.255.255.255 to have the same internal representation, leading to various issues when using a /0 prefix.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
It looks like IP address range calculations are not working correctly when using a /0 prefix.
Test Results (using 64-Bit Windows):
The text was updated successfully, but these errors were encountered: