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: [PATCH] resolv: Do not copy IPv4 addresses to IPv6 address array


On 07/03/2017 10:40 PM, Andreas Schwab wrote:
> On Jun 29 2017, Florian Weimer <fweimer@redhat.com> wrote:
> 
>> Andreas, if I recall correctly, you wrote get_nsaddr.
> 
> Yes, the BIND resolver in FreeBSD has the same function.

What do you think about the patch I posted?

> Their way to extend _res for IPv6 is worth looking at.

They put pointers to malloc'ed state directly into _res.  We could od as
well, but it will cause problems if applications copy _res, so I went
for the more complex approach.

Thanks,
Florian


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