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 16393 invoked from network); 31 Jul 2020 19:19:35 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 31 Jul 2020 19:19:35 -0000 Received: (qmail 26609 invoked by uid 550); 31 Jul 2020 19:19:31 -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 26590 invoked from network); 31 Jul 2020 19:19:30 -0000 Date: Fri, 31 Jul 2020 15:19:17 -0400 From: Rich Felker To: musl@lists.openwall.com Message-ID: <20200731191917.GU6949@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> <20200730160012.GT6949@brightrain.aerifal.cx> <8bd97d8a-ff78-27a0-8231-ffd0357218eb@samersoff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8bd97d8a-ff78-27a0-8231-ffd0357218eb@samersoff.net> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] getaddrinfo(3) with AI_V4MAPPED and AI_ALL flags On Fri, Jul 31, 2020 at 07:21:47PM +0300, Dmitry Samersoff wrote: > 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? This is an interesting question. What happens if you bind ::ffff:0.0.0.0 on an IPv6 socket? Is it the same as binding :: or does it produce a v6 socket that only accepts v4 connections? If it has its own distinct functionality then returning it when V4MAPPED is requested seems to make some sense. Rich