Re: [HACKERS] inet data type regression test fails

From: Taral <taral(at)taral(dot)net>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] inet data type regression test fails
Date: 1999-05-11 01:05:28
Message-ID: Pine.LNX.4.10.9905102005130.17947-100000@dragon.taral.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 11 May 1999, Tatsuo Ishii wrote:

> unsigned long mask = 0xffffffff;
>
> if (ip_bits(ip) < 32)
> mask >>= ip_bits(ip);
> addr = htonl(ntohl(ip_v4addr(ip)) | mask);

That's wrong too. There needs to be:

else
mask = 0;

Taral

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 1999-05-11 01:22:16 Re: [HACKERS] inet data type regression test fails
Previous Message Bruce Momjian 1999-05-11 01:05:08 Re: [HACKERS] inet data type regression test fails