Matthias Scheler writes:
> 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 */
> [...]
> }
> [...]
I was looking for the IPV6_V6ONLY on Linux, but these options don't
seem to exist there.
Egbert.
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel