Calculate IPv4 prefix len for CIDR notation