From an IPv4 address and a prefix length such as /24, gives the subnet mask, the network and broadcast addresses and the number of usable hosts, which excludes the first and last addresses.