On Mon, Jun 14, 2004 at 04:05:04PM +0900, Jun-ichiro itojun Hagino wrote: > > Hello IPv6: > > > > In RFC 3493 it is said AF_INET6 sockets receive connections from IPv4 nodes, > > mapping their addresses to ::ffff:<IPv4 address>. I think this behaviour is > > on by default. Although it is not explicitly stated, section 5.3 indicates a > > way to turn off this behaviour using the IPv6_V6ONLY socket option. > > I was wondering if you can or can't bind both AF_INET6 and AF_INET sockets > > to the same port at the same time. Is it ok or is it a bind error? If it is > > not an error which socket receives a IPv4 connection? Both? Only one? None? > > In my test lab I can't seam to be able to get Microsoft's O.S. AF_INET6 > > sockets to receive connections from IPv4, forcing me to bind 2 sockets, one > > in each protocol. In linux it works fine though, I only nead one socket. I > > have not tested any other O.S. yet. This seams highly contraditory... > > the behavior (relationship between AF_INET and AF_INET6 sockets/binds) > is not documented, so there's no standard. sigh.
I second that. I would hope that also Linux allows you to bind both AF_INET6 and AF_INET when using IPV6_V6ONLY socket option; I think that would be reasonable and logical behaviour. I don't know if that is the case though. This makes it hard to write portable code, Stig -------------------------------------------------------------------- IETF IPv6 working group mailing list [EMAIL PROTECTED] Administrative Requests: https://www1.ietf.org/mailman/listinfo/ipv6 --------------------------------------------------------------------
