From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29730 invoked from network); 31 Jul 2020 16:22:03 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 31 Jul 2020 16:22:03 -0000 Received: (qmail 11800 invoked by uid 550); 31 Jul 2020 16:22:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 11775 invoked from network); 31 Jul 2020 16:22:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samersoff.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xHUAl2Q9rRL34xnS36dRhPk5525VwtZZV2HBJOpRZ00=; b=bi44Frft5WoEuKfdIubNuTcIeG pjap3j7qvlEOZiw1XeVgPQZwETUR4eOBurUb753PMMknHL9ggd5MBHp8Y3TCewibS/HS/ZMF2dgp2 vxvfTv+DFC/q9NfXc3+fyYbIK6XWxuZCPJPxjqawK8AiIbaH9fdD97a8gN9q0V+zsEfA=; To: musl@lists.openwall.com, Rich Felker , Alexander Scherbatiy References: <89b25567-5887-80ee-bfac-58b25e7a9b45@bell-sw.com> <20200227144523.GE11469@brightrain.aerifal.cx> <6b3be14d-214d-9dde-86d2-1d97684f4004@bell-sw.com> <20200730160012.GT6949@brightrain.aerifal.cx> From: Dmitry Samersoff Message-ID: <8bd97d8a-ff78-27a0-8231-ffd0357218eb@samersoff.net> Date: Fri, 31 Jul 2020 19:21:47 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200730160012.GT6949@brightrain.aerifal.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-As: dms X-SpamProbe: GOOD 0.0004484 b7013deba9f93a9a5081f4bf60f57105 Subject: Re: [musl] getaddrinfo(3) with AI_V4MAPPED and AI_ALL flags Hello Rich, I'm not sure that mapping of INADDR_ANY (0.0.0.0) and return of ::ffff:0.0.0.0' has any sense. Should it be filtered out on musl level? -Dmitry On 30.07.2020 19:00, Rich Felker wrote: > On Thu, Jul 30, 2020 at 06:20:36PM +0300, Alexander Scherbatiy wrote: >> >>  glibc getaddrinfo(3) function uses /etc/gai.conf file to sort >> addrinfo results. >>  does musl getaddrinfo(3) implementations allows to configure the >> results order? > > Presently no, and there doesn't seem to have been a lot of demand for > it, though there was at least one other request. IIRC I asked about > the motivation since normally the default sorting should do the right > thing, and I believe it was for the sake of overriding for some sites > with broken IPv6 connectivity. If you have other use cases in mind it > would be good to mention them to help document that this is a feature > that makes sense to consider adding. > > Rich >