ip range, cidr, netmask functions