In article <42243F8D.5030302@xxxxxxxx> (at Tue, 01 Mar 2005 11:10:21 +0100),
Gilles Quillard <gilles.quillard@xxxxxxxx> says:
> The problem is not specific to NFS, any networking application written
> using IPv6 mechanisms for both IPv4 and IPv6 addresses (AF_INET6 socket
> opened, IPv4 addresses mapped) couldn't work without a kernel built with
> Are the final users really against the use of kernels built with IPv6 ?
> What is preconized on Linux for the support of IPv6 ? The solution
> described above or the cohabitation of the two modes (struct sockaddr or
> sockaddr_storage used to contain either struct sockaddr_in or struct
> sockaddr_in6) with specific processing according to the family of the
> addresses ?
You cannot assume whether the user enables IPv6 or not,
and you cannot assume s/he has connectivity to global Internet,
in most cases.
So, you likely need to try both IPv6 and IPv4.
Getaddrinfo() / getnameinfo(), or "protocol independent progarmming,"
are your friend.