Proper calculation of DHCP ranges for a subnet (first/last IP available, broadcast...