Re: broken IPv6 code
On Fri, Jan 05, 2001 at 10:42:52AM +1100, Brian May wrote:
(thanks all for this rather interesting discussion btw)
> I think there are two solutions:
>
> 1. getaddrinfo should not return IPv4 addresses if an IPv6 address exist,
> since using the IPv6 address implies usage of the IPv4 address.
Why not use getipnodebyname()? You got a whole bunch of flags you can
set to determine what sort of address you are after.
> 2. IPv4 and IPv6 protocols kept completely separate.
The main problem is the bind is no longer (semi)atomic like it was
before. With IPv4, if bind() failed you knew it was a problem with
either getting the port, or the process of getting the port (like
out of memory). With the IPv6 bind() you're not really that sure
anymore.
- Craig
--
Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/ <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org> Debian developer <csmall@debian.org>
Reply to: