Re: Brokenness in parsing of pg_hba.conf

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Kurt Roeckx <Q(at)ping(dot)be>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Brokenness in parsing of pg_hba.conf
Date: 2004-01-07 20:14:20
Message-ID: 200401072014.i07KEKS16358@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark wrote:
>
> Kurt Roeckx <Q(at)ping(dot)be> writes:
>
> > It's a.b.0.c.
> >
> > Note that the "c" can be bigger than 255, so 128.1.512 turns into
> > 128.1.2.0. This can make perfect sense when you still used
> > classes.
>
> Perhaps it'll seem less strange if I restate the rule so there aren't four
> different cases:
>
> A dotted quad is 1-4 numbers separated by dots where each number is an 8 bit
> number except for the last which includes all the remaining bits in the 32
> bit address.
>
> It might seem strange to people used to networks smaller than /24. But if you
> have a /16 with thousand hosts and don't need subnets it makes perfect sense
> to number them from 1-1000 rather than using base 256.
>
> I use it all the time for my net-10 addresses. They're subnetted into 10.1/16
> 10.2/16 etc. Sadly, I don't have thousands of hosts though.

Oh, the last number can be >255. That seems useful, I guess.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-01-07 20:17:26 Re: [COMMITTERS] pgsql-server/ oc/src/sgml/catalogs.sgml
Previous Message Tom Lane 2004-01-07 20:09:26 Re: Brokenness in parsing of pg_hba.conf