[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Incomplete getaddrinfo module
From: |
Yoann Vandoorselaere |
Subject: |
Re: [bug-gnulib] Incomplete getaddrinfo module |
Date: |
Thu, 15 Sep 2005 14:09:47 +0200 |
On Thu, 2005-09-15 at 13:35 +0200, Bruno Haible wrote:
> Yoann Vandoorselaere wrote:
> > The getaddrinfo module in GnuLib will often result in broken application
> > behavior because it is really a simple replacement which fail to handle
> > very common getaddrinfo usage pattern.
> >
> > A common example of why it might fail is:
> >
> > if (hints && (hints->ai_flags & ~AI_CANONNAME))
> > /* FIXME: Support more flags. */
> > return EAI_BADFLAGS;
>
> If you say which flags your application needs to work, maybe Simon can
> do something about it?
For my own use, I simply remove this check. This is due to the use of
AI_PASSIVE or AI_ADDRCONFIG, which can not easily be implemented without
very specific support.
> > This is not right since it tend to break application that trust the
> > GnuLib module to provide a viable getaddrinfo replacement.
>
> I agree. If we provide a function in gnulib, it should attempt to be an as
> complete replacement for the standard one as possible.
>
> > What is people opinion concerning an eventual drop of the current module
> > to replace it by the GLIBC implementation ?
>
> Have you looked at the glibc implementation of getaddrinfo? It's impossible.
> There's no way to make __nss_database_lookup work in the scope of gnulib.
Yes I did, and yes, we could not backport everything to GnuLib. Although
I think we could use a stripped version of the code.
--
Yoann Vandoorselaere <address@hidden>
- Incomplete getaddrinfo module, Yoann Vandoorselaere, 2005/09/15
- Re: Incomplete getaddrinfo module, Simon Josefsson, 2005/09/15
- Re: [bug-gnulib] Incomplete getaddrinfo module, Bruno Haible, 2005/09/15
- Re: [bug-gnulib] Incomplete getaddrinfo module,
Yoann Vandoorselaere <=
- Re: [bug-gnulib] Incomplete getaddrinfo module, Derek Price, 2005/09/15
- Re: [bug-gnulib] Incomplete getaddrinfo module, Yoann Vandoorselaere, 2005/09/15
- Re: [bug-gnulib] Incomplete getaddrinfo module, Derek Price, 2005/09/15
- Re: Incomplete getaddrinfo module, Simon Josefsson, 2005/09/15
- Re: Incomplete getaddrinfo module, Yoann Vandoorselaere, 2005/09/15
- Re: Incomplete getaddrinfo module, Simon Josefsson, 2005/09/15