Re: ipv6 accept does not convert ipv4 connections to ipv6-mapped

From: Felix von Leitner (felix@convergence.de)
Date: Wed May 03 2000 - 14:57:25 EST


Thus spake Felix von Leitner (felix@convergence.de):
> I am currently porting tcpserver et al to IPv6.
> According to the Stevens book (unix network programming, sockets API),
> when I create an IPv6 server socket on port foo the kernel should
> transparently accept IPv4 connections on port foo and return an IPv6
> connection to the server where the IPv6 address is the IPv4 address
> converted to IPv6-mapped format.

> The Linux kernel does not do this.

Sorry, my mistake.
The Linux kernel does this if you socket(PF_INET6), which I forgot to
modify. For some reason I could still bind the fd to an IPv6 address,
though. That shouldn't be possible, should it?

Felix

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:12 EST