Re: IPv6 patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Greg Copeland <greg(at)CopelandConsulting(dot)Net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Nigel Kukard <nkukard(at)lbsd(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: IPv6 patch
Date: 2003-01-06 22:33:09
Message-ID: 200301062233.h06MX9X18962@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Copeland wrote:
> > > > Yes, it listens on both. The original author, Nigel, tested in using
> > > > both IPv4 and IPv6, and the #ipv6 IRC channel and google postings seem
> > > > to indicate that too. What I am not sure how to do is say _only_ IPv4.
> > >
> > > Wouldn't you just use an IPv4 address family when creating your socket?
> >
> > Sorry, I meant only IPv6.
>
>
> I found this. It seems to imply that you need different sockets to do
> what you want to do. You might snag a copy of the latest openldap code
> and look at slapd to see what it's doing.
>
> At any rate, here's what I found that pointed me at it:
>
> slapd compiled with --enable-ipv6 does only listen to the IPv6 connections. I
> suspect this is tested on an operating system that receives IPv4 connections to
> the IPv6 socket as well, although this is not not the case for OpenBSD (nor
> FreeBSD or NetBSD ,IIRC). slapd needs to listen to both IPv4 and IPv6 on
> separate sockets.

I wasn't clear on which OS's supported dual ipv4/6 on the same socket.
Nigel is testing on Linux, so he says that works for both on the same
socket. Maybe on those other OS's we can do separate sockets on the
same port number --- not sure. Now that it is in there various OS's can
run tests and we will see.

--
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 Robert Treat 2003-01-06 22:36:34 Re: IPv6 patch
Previous Message Greg Copeland 2003-01-06 22:29:00 Re: IPv6 patch