-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in range_boundaries_to_cidr #37
Comments
Can you provide a minimum viable example (perhaps use the I've run the following on Ubuntu and macOS without fail: library(iptools)
range_boundaries_to_cidr(
ip_to_numeric("210.98.224.0"),
ip_to_numeric("210.98.227.255")
)
## [1] "210.98.224.0/22" |
I can confirm this bug occurs on Windows 10/R 3.5.3 64-bit. At a guess, I'd say the problem is in Lines 76 to 77 in a65fc5e
Note that the output is correct for addresses that are smaller than 127.255.255.255:
|
Thank you for this wonderful package.
I've run range_boundaries_to_cidr, but there were lots of errors.
When I was using it with ip addresses starts with 2xx.xxx.xxx.xxx, it returns 128.0.0./32 for all addresses.
You may try with ("210.98.224.0", "210.98.227.255"), for example.
I would really appreciate if I can use this package to figure out the ranges for those 2xx~~~~ addresses.
Thank you in advance.
The text was updated successfully, but these errors were encountered: