This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH 2/4][BZ 17083] NSS: Parse zone identifier of IPv6 addresses in /etc/hosts


Dnia 12 września 2017 12:00:28 CEST, Florian Weimer <fweimer@redhat.com> napisał(a):
>On 09/05/2017 06:05 PM, Łukasz Stelmach wrote:
>> +	   ret = getaddrinfo(addr, NULL, &hints, &res);
>
>That makes me rather nervous due to the potential for recursion.  Can
>we
>factor out the AI_NUMERICHOST code into a separate function instead?

It appears there is little code to be factored-out in gaih_inet(),
which is the workhorse. There several attempts to parse
a hostname as numeric and the flag prevents from going
further.

Yet another issue I can see, is that the factored out code
would have to be public (?) to be available to NSS module.

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.

-- 
Łukasz Stelmach z podróży


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]