> Note that this path is only used on systems with getnameinfo() and IPv6 > support. The h_errno kludge helps out with some getnameinfo() issues > on common versions of glibc. Before we truly clean up this code we > need to understand what is needed to operate with getnameinfo() across > a variety of systems. Hopefully the h_errno stuff can then be hidden > inside ifdef GETNAMEINFO_SETS_H_ERRNO and any non-Unix platforms which > later add getnameinfo() support won't be hurt by the kludge since it > won't be set.
In fact this was the cause of much confusion while Jeff and I tried to figure out what was wrong with some network code a while back. We definately need to ensure that we have a clear understanding of what is being set and therefore what we should be checking... david