On Tue, Jul 22, 2003 at 10:58:29AM -0700, Alan Coopersmith wrote:
> This was one of the patches suggested to the X.org IPv6 review which
> we declined to include in our patch set, but which got checked into
> the XFree86 CVS anyway.   We were told that separately binding to both is
> the usual habit on OpenBSD,

It is necessary in at least NetBSD and OpenBSD because the kernel won't
let you accept IPv4 connection on an IPv6 socket by default. As FreeBSD's
IPv6 is AFAK also KAME based I would expect that it shows the same behaviour.

> ... while simply binding to IPv6 and letting it handle both was the
> way we coded it to work, and had it working on both Solaris and Linux.

You can use that scheme in *BSD, too, if you use setsockopt() like this:

        int off = 0;
[...]
        if (setsockopt(listen_socket, IPPROTO_IPV6, IPV6_V6ONLY, &off,
            sizeof (off)) < 0) {
                /* error handling */
                [...]
        }
[...]

        Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to