An intermediate version of: check-ip-net-mask.php (CIDR netmask)