replace netmask with cidr