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=-2.5 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SUBJ_OBFU_PUNCT_FEW autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30136 invoked from network); 30 Jul 2020 16:00:37 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 30 Jul 2020 16:00:37 -0000 Received: (qmail 15708 invoked by uid 550); 30 Jul 2020 16:00:33 -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 15669 invoked from network); 30 Jul 2020 16:00:30 -0000 Date: Thu, 30 Jul 2020 12:00:12 -0400 From: Rich Felker To: Alexander Scherbatiy Cc: musl@lists.openwall.com Message-ID: <20200730160012.GT6949@brightrain.aerifal.cx> References: <89b25567-5887-80ee-bfac-58b25e7a9b45@bell-sw.com> <20200227144523.GE11469@brightrain.aerifal.cx> <6b3be14d-214d-9dde-86d2-1d97684f4004@bell-sw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6b3be14d-214d-9dde-86d2-1d97684f4004@bell-sw.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] getaddrinfo(3) with AI_V4MAPPED and AI_ALL flags 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