On Mon, 2003-01-06 at 15:43, Bruce Momjian wrote:
> Greg Copeland wrote:
> > On Mon, 2003-01-06 at 15:29, Peter Eisentraut wrote:
> > > (2) A socket type is explicitly enabled for the server to use, and if
> > > creation fails, server startup fails. It seems that the current code
> > > falls back to IPv4 if IPv6 fails.
> > IIRC, it allows it to fall back to IPv4 in case it's compiled for IPv6
> > support but the kernel isn't compiled to support IPv6. If that is the
> > case, admittedly, you seem to have a point. If someone compiles in v6
> > support and their system doesn't have v6 support and it's been requested
> > via run-time config, it's should fail just like any other.
> Yes, right now, it is kind of a mystery when it falls back to IPv4. It
> does print a message in the server logs:
> LOG: server socket failure: getaddrinfo2() using IPv6: hostname nor servname
>provided, or not known
> LOG: IPv6 support disabled --- perhaps the kernel does not support IPv6
> LOG: IPv4 socket created
> It appears right at the top because creating the socket is the first
> thing it does. A good question is once we have a way for the user to
> control IPv4/6, what do we ship as a default? IPv4-only? Both, and if
> both, do we fail on a kernel that doesn't have IPv6 enabled?
So you're saying that by using the IPv6 address family and you bind to
an IPv6 address (or even ANY interface), you still get v4 connections on
the same bind/listen/accept sequence?
I'm asking because I've never done v6 stuff.
Greg Copeland <[EMAIL PROTECTED]>
Copeland Computer Consulting
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])