Skip to content
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

Is wildcard_dec in processWithSlash function wrong when IP is valid IPv6? #9

Open
Wjj954628981 opened this issue Aug 29, 2018 · 1 comment

Comments

@Wjj954628981
Copy link

$wildcard_dec = pow(2, (32 - $netmask)) - 1;
Is 32 should be 128?
And how large number calculate with '&' ?
Thank you.

@tnsoftbear
Copy link

There is problem with hexadecimal numbers in v6 ips. See

$range = sprintf(

"%u" will produce decimal number and change your ip.
Switched to mlocati/ip-lib

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

No branches or pull requests

2 participants