netdev
[Top] [All Lists]

Re: support of IPv6 by NFS

To: gilles.quillard@xxxxxxxx
Subject: Re: support of IPv6 by NFS
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Wed, 02 Mar 2005 00:42:45 +0900 (JST)
Cc: netdev@xxxxxxxxxxx, linux-ipv6@xxxxxxxxxxxxx, gh@xxxxxxxxxx, Tony.Reix@xxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
In-reply-to: <42243F8D.5030302@xxxxxxxx>
Organization: USAGI Project
References: <42243F8D.5030302@xxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
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 
> IPv6.
:
> 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.

--yoshfuji

<Prev in Thread] Current Thread [Next in Thread>