You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/32 networks (single host) get weird output from some of the calls. Admittedly some of the function calls don't necessarily make sense for /32, but the output doesn't seem to be what one would expect:
GetNumberIPAddresses: I would think this would return 1 since /32 generally means just a single IP address, though I can see how 0 might result from masking operations.
GetNumberAddressableHosts: I'm not sure if this should return 1 or 0, but 1 is probably preferred and is what is currently returned
GetIPAddressRange()[1]: This should just return the single IP address. The return value isn't valid
GetBroadcastAddress(): I would think this would just return the single IP address as well. The return value isn't valid.
The text was updated successfully, but these errors were encountered:
Noticed the same.
For GetIPAddressRange() I think it should return two values like [8.8.8.8, 8.8.8.8] because otherwise prope ask for second entry and get an error.
But for GetBroadcastAddress() I noticed some weird behaviour:
sub:=ipsubnet.SubnetCalculator("192.168.132.197", "32")
sub.GetBroadcastAddress() // 447.423.387.452 THIS IS NOT A VALID IP!
/32 networks (single host) get weird output from some of the calls. Admittedly some of the function calls don't necessarily make sense for /32, but the output doesn't seem to be what one would expect:
GetNumberIPAddresses
: I would think this would return 1 since /32 generally means just a single IP address, though I can see how 0 might result from masking operations.GetNumberAddressableHosts
: I'm not sure if this should return 1 or 0, but 1 is probably preferred and is what is currently returnedGetIPAddressRange()[1]
: This should just return the single IP address. The return value isn't validGetBroadcastAddress()
: I would think this would just return the single IP address as well. The return value isn't valid.The text was updated successfully, but these errors were encountered: