[libvirt] Host IP Address

IKI-サガル バルウェ sagar.barve at ikic.co.jp
Fri Jun 25 00:11:41 UTC 2010


>> Never use gethostbyname in any new code. It is long since obsolete, not
>> thread safe and is hardcoded to only work with IPv4.
>
>> There is a good exmaple of how to use the modern replacemenbt, 
>> getaddrinfo(),
>> to resolve hostnames here:
>
>>  http://people.redhat.com/drepper/userapi-ipv6.html
>
> Oh, sorry, I wasn't aware of that. Thank you for the hint.
>
> Ciao
> Max

Thanks Daniel and Max for all the help.

Thanks and Regards
Sagar Barve
----- Original Message ----- 
From: "Maximilian Wilhelm" <max at rfc2324.org>
To: <libvir-list at redhat.com>
Sent: Friday, June 25, 2010 12:55 AM
Subject: Re: [libvirt] Host IP Address


> Anno domini 2010 Daniel P. Berrange scripsit:
>
>> Never use gethostbyname in any new code. It is long since obsolete, not
>> thread safe and is hardcoded to only work with IPv4.
>
>> There is a good exmaple of how to use the modern replacemenbt, 
>> getaddrinfo(),
>> to resolve hostnames here:
>
>>  http://people.redhat.com/drepper/userapi-ipv6.html
>
> Oh, sorry, I wasn't aware of that. Thank you for the hint.
>
> Ciao
> Max
> -- 
> Alles sollte so einfach wie möglich gemacht sein.
> Aber nicht einfacher.  (Einstein)
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list 




More information about the libvir-list mailing list