apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject Re: testipsub bogosty centered on getaddrinfo
Date Sat, 13 Oct 2007 23:53:45 GMT
On Sat, Oct 13, 2007 at 06:41:41PM -0500, William A. Rowe, Jr. wrote:
>         ,{"3FFE:8160::", "28", APR_INET6, "3ffE:816e:abcd:1234::1", 
>         "3ffe:8170::1"}
> 
> [All of the tests above work on win32, with ipv6 compiled but without ipv6 
> configured.
> The problems lurk in the final two tests... note that these IP's aren't 
> even legal
> IPv6 addresses...]

Which two IP's arn't even legal IPv6 addresses?

>         ,{"127.0.0.1", NULL, APR_INET6, "::ffff:127.0.0.1", "fe80::1"}
>         ,{"127.0.0.1",  "8", APR_INET6, "::ffff:127.0.0.1", "fe80::1"}

These two? They are legal, ::ffff:127.0.0.1 is an IPv4-mapped IPv6
address representing localhost and fe80::1 is a valid link-scoped
address.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

Mime
View raw message