bschaatsbergen / cidr

Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.
https://formulae.brew.sh/formula/cidr
MIT License
184 stars 9 forks source link

feat: remember the network and broadcast address #46

Closed cloudcosmonaut closed 2 years ago

cloudcosmonaut commented 2 years ago

I noticed that the count function didn't consider that a subnet requires a network and broadcast address. I also added the edge case of a /31 subnet and how that is handled by providers (even though it's not compliant ;))

bschaatsbergen commented 2 years ago

Thanks for your contribution @cloudcosmonaut :purple_heart: