Re: [HACKERS] inet data type regression test fails - Mailing list pgsql-hackers

From Taral
Subject Re: [HACKERS] inet data type regression test fails
Date
Msg-id Pine.LNX.4.10.9905102005130.17947-100000@dragon.taral.net
Whole thread Raw
In response to Re: [HACKERS] inet data type regression test fails  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: [HACKERS] inet data type regression test fails
List 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:

elsemask = 0;

Taral



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] inet data type regression test fails
Next
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] inet data type regression test fails