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
{{ message }}
This repository has been archived by the owner on May 25, 2023. It is now read-only.
I think it would be useful to be able to get the number of IP addresses in ranges, prefixes and sets. That could take the form of Count() or Len() methods, I think.
For prefixes, the number of IP addresses would include all of them, including the min and max ones even if they could be a network and a broadcast address, as:
they are valid IP addresses,
tt is easy for the user to remove them from the count if needed,
including them makes it easier to add counts of multiple prefixes.
Right now, I think that, in order to count IP addresses in a range, I would have to convert its bounds into net.IPAddr and do arithmetics from there.
Regards,
--
Tanguy Ortolo
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I think it would be useful to be able to get the number of IP addresses in ranges, prefixes and sets. That could take the form of
Count()
orLen()
methods, I think.For prefixes, the number of IP addresses would include all of them, including the min and max ones even if they could be a network and a broadcast address, as:
Right now, I think that, in order to count IP addresses in a range, I would have to convert its bounds into
net.IPAddr
and do arithmetics from there.Regards,
--
Tanguy Ortolo
The text was updated successfully, but these errors were encountered: