
Large numbers of hosts (/0 and /1 subnets) are overflowing and showing as a negative number. Changing 1<<(32-mask) to 2**(32-mask) causes JavaScript to calculate the integer properly.
subnets
Visual subnet calculator as seen at http://www.davidc.net/sites/default/subnets/subnets.html
Run with docker
cd <project folder>
docker build . -t subnets
docker run -d -p 5001:80 --name subnets subnets
Description
Languages
HTML
96.2%
PHP
3.2%
Dockerfile
0.6%