cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: a small patch for hostip6.c

From: Andy Tai <atai_at_atai.org>
Date: Mon, 17 Oct 2011 13:40:44 -0700

It was on an Ubuntu 10.10 x86-64 machine; the address string was "127.0.0.1"
but glibc nevertheless invoked getaddrinfo(). The machine has gcc 4.4.5 and
glibc version EGLIBC 2.12.1

Daniel asked:
>Andy, are you saying that your test target makes an actual DNS resolve of
an
>IP-only string? And if so, what exactly does it try to resolve and what is
the
>result?

On Fri, Oct 14, 2011 at 3:25 PM, Andy Tai <atai_at_atai.org> wrote:

> Hi, I hope the attached diff for lib/hostip6.c can be considered. In
> lib/hostip4.c numerical IP addresses can be detected and a trip to the DNS
> resolver is avoided; however this is not the case in hostip6.c. The
> attached patch makes it the same, at least for IPv4 numerical addresses.
>
>

-- 
Andy Tai, atai_at_atai.org, Skype: licheng.tai
Year 2011 民國100年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-17