On Wed, 20 Sep 2000, Hideaki YOSHIFUJI wrote:
> In article <[EMAIL PROTECTED]> (at
>Tue, 19 Sep 2000 18:59:29 +0200 (CEST)), Mauro Tortonesi <[EMAIL PROTECTED]>
>says:
>
> > > What do you mean by "full results," Mauro?
> >
> > simply the result of a query to the dns ;)
>
> For what?
> You should show us FULL example code and result; don't try to describe.
source code is not very significant. it simply contains the call:
memset(&ai, 0, sizeof(ai));
ai.ai_family = AF_UNSPEC;
ai.ai_protocol = IPPROTO_TCP;
ai.ai_flags = AI_CANONNAME;
if ((err = getaddrinfo(host,"finger", &ai, &res)) != 0 || !res) {
eprintf("finger: getaddrinfo failure: %s\n",
gai_strerror(err));
return;
}
where host is "fe80::248:54ff:fe4b:1c6f". the results are:
res dumped:
flags: AI_CANONNAME AI_ALL
family: AF_INET6
socket type: SOCK_STREAM
protocol: 6
ip address length: 24
canonic name: trantorv6
res->ai_addr dumped:
family: AF_INET6
port: 79
address: fe80::248:54ff:fe4b:1c6f
no query to the dns is done.
--
Mauro Tortonesi
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------