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

Reply via email to