>> >> unsigned long mask = 0xffffffff; >> >> >> >> if (ip_bits(ip) < 32) >> >> mask >>= ip_bits(ip); >> >> addr = htonl(ntohl(ip_v4addr(ip)) | mask); > >> No. it is expected addr == 0xffffffff if ip_bits() returns >= 32. This >> is how the function (network_broadcast()) is made. >> See included posting. > >ip_bits(ip) = 0 => mask = 0xffffffff >ip_bits(ip) = 31 => mask = 1 >ip_bits(ip) = 32 => mask = 0xffffffff > >You sure? Yes. That's exactly what I expected. --- Tatsuo Ishii
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных