This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH 2/4][BZ 17083] NSS: Parse zone identifier of IPv6 addresses in /etc/hosts
Dnia 12 września 2017 12:51:19 CEST, Florian Weimer <fweimer@redhat.com> napisał(a):
>On 09/12/2017 12:40 PM, Łukasz Stelmach wrote:
>> Now I can see there is __inet6_scopeid__pton(). I'll try it but I am
>> afraid probably it won't be visible in the NSS module.
>
>It's exported because getaddrinfo is also compiled into nscd (outside
>libc) and it has to reference __inet6_scopeid__pton somehow.
Yes it is visible.
I have identified the code that does what I need. This is more or less the else-if
in getaddrinfo.c:531 (commit 620ff9eea6).
Practical question: what would be the preferred way of (re)using thiscode in files-hosts.c?
--
Łukasz Stelmach z podróży