Re: [GENERAL] netmask

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Oleg Sharoiko <os(at)rsu(dot)ru>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] netmask
Date: 1999-09-27 16:18:26
Message-ID: 199909271618.MAA01702@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

As I mentioned I already applied it.

> Hello!
>
> I think this is a bug. But it's said not to report any bugs unless you're
> sure that it's a bug, so I'm asking heer is this a bug?
>
> template1=> select netmask('10.0.0.1/0');
> netmask
> ---------------
> 255.255.255.255
> (1 row)
>
> This happens because
> word << shift
> uses only 5 low bits of shift (this is described in docs on Intel processor).
> Running
> word << 32
> on sparc also gives unchanegd word
>
> I've included a patch for 6.5.
> I think it will work with 6.5.1
>
> --
> Oleg.
Content-Description:

[Attachment, skipping...]

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

  • netmask at 1999-07-30 06:32:10 from Oleg Sharoiko

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-09-27 16:47:25 Re: [GENERAL] Anyone doing a native NT port?
Previous Message David Heinecke 1999-09-27 16:16:36 Anyone doing a native NT port?