cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IPv6 Support

From: Phil Blundell <pb_at_reciva.com>
Date: Wed, 10 Dec 2008 13:34:45 +0000

On Wed, 2008-12-10 at 13:25 +0000, keshav krity wrote:
> Does lib-curl support mixed addressing of the format that has IPv4
> address embedded into the an IPv6 address. Example :
> 805B:2D9D:DC28::FC57:212.200.31.255

You didn't mention what OS you are using, what version of libcurl you
have, or what resolver library it was configured to use, so it is
difficult to say exactly what would be causing your problem. However,
addresses in this form do work OK for me using c-ares under Linux:

$ strace -f ./curl -g http://[805B:2D9D:DC28::FC57:212.200.31.255]/ 2>&1
|grep 805b
connect(3, {sa_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6,
"805b:2d9d:dc28::fc57:d4c8:1fff", &sin6_addr), sin6_flowinfo=0,
sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress)
$

p.
Received on 2008-12-10