Accept CIDR for netmask and convert it