Fix for prefixlengths of 32 (IPv4) and 128 (IPv6) bits.