pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: Paul Forgey <paulf@aphrodite.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: remote connections to Windows based server
Date: Fri, 17 Nov 2006 17:54:56 -0500
Message-ID: <22004.1163804096@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.64.0611171440140.23695@discord.home.frostconsultingllc.com>
References: <D8A7F8DD-90B2-48E9-9F4D-46F8C324F8AB@aphrodite.com>
	<Pine.LNX.4.64.0611171440140.23695@discord.home.frostconsultingllc.com>

Jeff Frost <jeff@frostconsultingllc.com> writes:
> I believe you must list all 4 octets of the subnet.

Oh, duh.  The comments in inet_aton() show that it is interpreting
"10.6" in what most people nowadays would find a surprising way:

		case 1:			/* a -- 32 bits */
		case 2:			/* a.b -- 8.24 bits */
		case 3:			/* a.b.c -- 8.8.16 bits */
		case 4:			/* a.b.c.d -- 8.8.8.8 bits */

ie, it is read as if it were "10.0.0.6" ... hence no match, but also no
syntax error.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <22004.1163804096@sss.pgh.pa.us>
Permalink:  ../22004.1163804096@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22004.1163804096@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeff@frostconsultingllc.com, paulf@aphrodite.com
  Subject: Re: remote connections to Windows based server
  In-Reply-To: <22004.1163804096@sss.pgh.pa.us>
  References: <D8A7F8DD-90B2-48E9-9F4D-46F8C324F8AB@aphrodite.com> <Pine.LNX.4.64.0611171440140.23695@discord.home.frostconsultingllc.com> <22004.1163804096@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox