[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
> => 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 :-).
itojun