dhcp4: handle prefix-len 0 in cidr to netmask