Re: getaddrinfo() does not behave as expected!
- From: Darren Dunham <ddunham@xxxxxxxxxxxxxxxx>
- Date: Thu, 02 Nov 2006 01:20:56 GMT
Alex Zhilyakov <az@xxxxxxxxxxxxx> wrote:
There is nothing to patch in S8. If your application supports both
IPv4 and IPv6, then you shouldn't care which of 127.1 or ::1 you get.
If your application supports IPv4 only, then you must use PF_INET
in getaddrinfo().
My take is that while the application may support both v4 and v6 and be
able to use both, it is common for a Solaris 8 machine to not answer on
::1 (no IPv6 configuration), yet getaddrinfo would still return ::1 for
localhost.
So you have a valid name and get a valid (IPv6) address, but nothing is
listening...
# ping -ns ::1
ping: unknown host ::1
#
And that he wants ::1 to not be returned when the machine is not
configured for IPv6 and isn't communicating on that address.
I would presume that it may be correct to continue and try other
returned addresses in case the first one fails, but that's a guess.
--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.
- References:
- getaddrinfo() does not behave as expected!
- From: ravindra . rajaram
- Re: getaddrinfo() does not behave as expected!
- From: Alex Zhilyakov
- Re: getaddrinfo() does not behave as expected!
- From: ravindra . rajaram
- Re: getaddrinfo() does not behave as expected!
- From: Alex Zhilyakov
- getaddrinfo() does not behave as expected!
- Prev by Date: Re: zfs snapshot error
- Next by Date: Re: Find contents of a pkg
- Previous by thread: Re: getaddrinfo() does not behave as expected!
- Next by thread: Re: getaddrinfo() does not behave as expected!
- Index(es):
Relevant Pages
|