akalongman / akalongman/php-ip-tools

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

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
147
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.