Re: IPV4 addresses on IPV6 machines in pg_hba.conf

From: Kurt Roeckx <Q(at)ping(dot)be>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: IPV4 addresses on IPV6 machines in pg_hba.conf
Date: 2003-09-04 16:47:21
Message-ID: 20030904164720.GA10491@ping.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Wed, Sep 03, 2003 at 07:19:16PM +0200, Andreas Pflug wrote:
> This was discussed in [HACKERS] TCP/IP with 7.4 beta2 broken?
>
>
> I created a patch to hba.c which uses IPV4 entries as IPV6 entries if
> running on a IPV6 system (which is detected from a port coming in as
> AF_INET6).
>

You're assuming all systems have an AF_INET6 constant, which is
not the case. Please make use of HAVE_IPV6.

Can't directly see anything else wrong with it.

Kurt

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2003-09-04 20:16:13 Re: Fw: New translation
Previous Message Mirko Tebaldi 2003-09-04 14:26:45 Fw: New translation