[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Can anyone help him/invite him to the effort?

(Apologies if this individual is already here :-) ).

wfms

---------- Forwarded message ----------
Date: Wed, 3 May 2000 21:57:25 +0200
From: Felix von Leitner <felix@convergence.de>
To: Linux kernel mailing list <linux-kernel@vger.rutgers.edu>
Subject: Re: ipv6 accept does not convert ipv4 connections to ipv6-mapped

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/


Reply to: