bschaatsbergen / cidr

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

Add the total number of IPs and the total number of available IPs #90

Closed TajangSec closed 7 months ago

TajangSec commented 7 months ago

When calculating 10.23.9.130/30, the output Address Count: 2 image However, there are 4 IPs in this address segment, including the base address and the broadcast address. So I want to be able to output the number of all IP addresses with the number of available IP addresses.

bschaatsbergen commented 7 months ago

Would it be better if we replace "Address Count:" with "Host Addresses:"? I agree that "Address Count:" might be confusing since it excludes both the Broadcast address and the Base Address. What are your thoughts @TajangSec on this?