[PATCH] getaddrinfo and getnameinfo in libirs
pemensik at redhat.com
Wed Feb 22 11:33:19 UTC 2017
Paul Vixie píše v Út 21. 02. 2017 v 11:13 -0800:
> Petr Mensik wrote:
> > I know about two places that use it.
> > 1) delv tool
> > 2) dhcp server from dhcp package. We have problem with that in
> > Fedora.
> > Dhcp server is linked against openldap library.
> > Which when connecting to ldap server tries to use flag
> > AI_ADDRCONFIG.
> > But because libirs is linked against the same library before glibc,
> > it grabs its call.
> > It does not support such flag however, it always returns error.
> yikes. libirs should be pulled out of the base system. it's
> unmaintained. there's a newer version of all that code in libbind8,
> which is maintained by the netbsd foundation.
Sure, you confirm my suspicion that it is really old legacy code, now
moved into libresolv. Which is in turn used as part of glibc on linux
systems today. And still in that library more by error than intention.
> > See https://bugzilla.redhat.com/show_bug.cgi?id=1205168
> noone has touched libirs in over 15 years that i know of.
I think there is right time to touch it now. Both delv and dhcp/omapip
is using libirs to get forwarder addresses, to parse /etc/resolv.conf.
I think that part is still somehow useful, because libresolv provides
api to it only from deprecated functions.
But getaddrinfo.c getnameinfo.c and gai_strerror.c should be removed
entirely. That is what my second patch did with --enable-
nativeaddrinfo. I cannot find any reason to use those files in any way
now. Lets have libresolv handle it always and better.
> > --
> > Petr Menšík
> > Software Engineer
> > Red Hat, http://www.redhat.com/
> > email: pemensik at redhat.com PGP: 65C6C973
> > ----- Original Message -----
> > From: "Paul Vixie" <paul at redbarn.org>
> > To: "Petr Mensik" <pemensik at redhat.com>
> > Cc: "BIND workers" <bind-workers at lists.isc.org>
> > Sent: Tuesday, February 21, 2017 7:39:50 PM
> > Subject: Re: [PATCH] getaddrinfo and getnameinfo in libirs
> > Petr Mensik wrote:
> > > Hi.
> > >
> > > It was pointed to me that bind libirs library provides
> > > getaddrinfo without prefix.
> > libirs is old, dead code. where are you encountering it?
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com PGP: 65C6C973
More information about the bind-workers