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

Re: draft-cmetz-v6ops-v4mapped-api-harmful-00.txt and draft-itojun-v6ops-v4mapped-harmful-01.txt



 In your previous mail you wrote:

   > => I replace all AF_INET by AF_INET6, gethostbyname() by getaddrinfo(),
   > gethostbyaddr() by getnameinfo(), etc. I use one socket at the
   > server side because I consider there is only one IP, in the API it
   > becomes IPv6 with IPv4 space injected (in the math meaning) into
   > the IPv6 space as IPv4-mapped IPv6 addresses.
   
   	could you tell me why you don't use getaddrinfo(AI_PASSIVE) and obey
   	the result?  by doing so your application will be totally address
   	family independent (no AF_INET6 hardcoded) and will be future-proven
   	(will work with SCTP, DCCP or even IPv8 :-).
   
=> you already know the answer: because I'd like to listen on only a socket.
And this is address family independent (getaddrinfo is not defined for
AF_ISO for instance) and transport protocol independent (it works with
SCTP).

This is my last message about this topic.

Regards

Francis.Dupont@enst-bretagne.fr