apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <...@manyfish.co.uk>
Subject Re: [PATCH] Default Listen with IPv6 enabled incorrect
Date Tue, 19 Aug 2003 10:55:12 GMT
On Tue, Aug 12, 2003 at 06:17:12PM -0700, Wan-Teh Chang wrote:
> Regarding a previous patch to use AI_ADDRCONFIG:
> all the getaddrinfo() implementations I know of
> conform to either RFC 2133 or RFC 2553 and do
> not take the AI_ADDRCONFIG flag.

glibc is getting support for this.

>  (RFC 2553 has
> AI_ADDRCONFIG but it is for getipnodebyname().)
> It is risky to assume that when AI_ADDRCONFIG is
> passed to these getaddrinfo() implementations,
> getaddrinfo() will either silently ignore it or
> fail with the EAI_BADFLAGS error.  It is better
> to confirm that getaddrinfo() conforms to RFC
> 3493 before passing AI_ADDRCONFIG to it.

I think it's a pretty small risk, but you're probably
right. I tested all the getaddrinfo() implementations I
could find and they did the right thing; it's not like
this is going to be a risk for anyone porting APR to old
Unixes.

Regards,

joe

Mime
View raw message