From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107547 invoked by alias); 4 Jul 2017 09:47:59 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 107500 invoked by uid 89); 4 Jul 2017 09:47:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Their X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1A0E48553F Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 1A0E48553F Subject: Re: [PATCH] resolv: Do not copy IPv4 addresses to IPv6 address array To: Andreas Schwab Cc: GNU C Library , Carlos O'Donell References: <8113b7c9-b9a8-7157-f957-53853dc4e232@redhat.com> <87h8yt6yq5.fsf@linux-m68k.org> From: Florian Weimer Message-ID: Date: Tue, 04 Jul 2017 09:47:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <87h8yt6yq5.fsf@linux-m68k.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-07/txt/msg00050.txt.bz2 On 07/03/2017 10:40 PM, Andreas Schwab wrote: > On Jun 29 2017, Florian Weimer 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