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

Bug#164768: libc: IPv6 still not correct.

On Wed, Oct 16, 2002 at 16:36:50 -0400, Ben Collins wrote:
> On Wed, Oct 16, 2002 at 09:06:03PM +0100, Matthew Vernon wrote:
> > For the avoidance of doubt, this is the same problem as reported in
> > 82468[1] (which was closed "this ssh/libc bug is long since gone"
> > without any fix being applied), but I can't re-open that bug since its
> > archived.
> > 
> > In the example code I posted with this report (and which appears in
> > 82468), the struct sockaddr returned by getpeername is what
> > getnameinfo barfs on. That code comes from ssh, which by default will
> > use AF_UNSPEC in the ai_family of hints to getaddrinfo, for example.  
> And as I've said in the past numerous times. The fact that every other
> IPv6 using program (including apache, bind, telnet, etc.) get this
> right, and sshd doesn't, isn't libc's fault.

apache doesn't use getnameinfo(). bind implements getnameinfo() itself.
telnetd just logs an error if getnameinfo() fails and sets
remote_host_name to the empty string. I'm not sure any of those are good
parallels to sshd's use of libc: it merely uses a different subset of
the IPv6 API.

Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: