netdev
[Top] [All Lists]

Re: getipnodebyname??

To: aaguirre@xxxxxxxx
Subject: Re: getipnodebyname??
From: Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxxxxx>
Date: Fri, 14 Jul 2000 08:41:40 +0900
Cc: netdev@xxxxxxxxxxx
In-reply-to: <200007132110.RAA06017@xxxxxxxxxxxxxxxx>
References: <20000713213055.A4337@xxxxxxxxxxxxxxxx> <200007132110.RAA06017@xxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
In article <200007132110.RAA06017@xxxxxxxxxxxxxxxx> (at Thu, 13 Jul 2000 
17:10:54 -0400 (CST)), Armando Aguirre Schlick <aaguirre@xxxxxxxx> says:

>       Here's my question... is there some standard function like
>  getipnodebyname in glibc?
>       I need to reach all of the address of a host, including IPv4-mapped
>  IPv6 address...

gethostbyname2() (or gethostbyname2_r(); maybe glibc specific).

Pelease note getipnoby{name,addr} and gethostbyname2{,_r}() are now 
deprecated; please read draft-ietf-ipng-rfc2553bis-00.txt.
According to this draft, we will be able to pass AI_V4MAPPED, AI_ALL, 
AI_ADDRCONFIG flags through getaddrinfo(). 
(I'm not sure, but maybe) I will implement this.

-- 
Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxxxxx>
Web Page: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 

<Prev in Thread] Current Thread [Next in Thread>