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

"CIDR Subnet Mask Calculator" (Website): some subnet masks not working correct #9

Closed
ghost opened this issue Apr 2, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 2, 2021

The calculation at "CIDR Subnet Mask Calculator" on the website https://salieri.github.io/IPSubnetCalculator/ is working for the common, top listed subnet masks ("/24", "/16", "/8") but not for all values listed after "----------------------".

If you chose e.g. "/24" from the top of the list you get the correct subnet mask 255.255.255.0.
If you chose the second list entry for "/24" (down in the list) you get subnet mask 240.0.0.0.

The problem is at all subnet masks greater "/20" because of wrong "value" for the options. The values start again with "1" (for "/21") but should be "21" and so on.
See

<option value='1'>/21</option>

@salieri
Copy link
Owner

salieri commented Feb 28, 2024

Fixed!

@salieri salieri closed this as completed Feb 28, 2024
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

1 participant