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

Re: Heimdal and OpenBSD 2.6



itojun@iijlab.net writes:
> >$25 = 0x46da0 "babble.citi.umich.edu"
> >
> >and portstr is 
> >(gdb) p portstr
> >$24 = "88\000\000\000,A,\b@\223,Az\000\000\223,Az\000\000,ATS?_\000p\004\000<*\005\000\\,AH?_"
> >
> >Both look OK to me.
> 
> 	behavior changes depending on the content of "hints".

In this case, hints should have been ai_family = PF_UNSPEC and
ai_socktype = SOCK_DGRAM.

> 	openbsd 2.6 uses NRL getaddrinfo, and -2 means EAI_NONAME
> 	(name or service is not known).

So are we using getaddrinfo() wrong here?  Or is this a known case
that we have to test for?

> 	openbsd 2.7 uses KAME getaddrinfo.

Which works just fine for us. :-)

/assar