From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: ai_flags in calls to getaddrinfo, broader call for reproducibility check Date: Tue, 12 Jan 2021 18:05:06 +0200 Message-ID: <838s8ydtu5.fsf@gnu.org> References: <83sg7mggls.fsf@gnu.org> <83czymc8nq.fsf@gnu.org> <74b7a0a9-0eb3-7944-19d2-f72424ee72d7@dasyatidae.com> <83eeirfqbo.fsf@gnu.org> <87o8hvscfi.fsf@gmail.com> <8335z7fmnz.fsf@gnu.org> <87ft374axc.fsf@gmail.com> <83wnwjdwww.fsf@gnu.org> <87czyb2nvq.fsf@gmail.com> <83r1mqdwri.fsf@gnu.org> <83eeiqduvi.fsf@gnu.org> <87pn2aywjr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16256"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rtt@dasyatidae.com, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 12 17:06:58 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzMC9-00044w-Vy for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jan 2021 17:06:57 +0100 Original-Received: from localhost ([::1]:49280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzMC9-0003WE-18 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jan 2021 11:06:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzMAA-0001wO-Ag for emacs-devel@gnu.org; Tue, 12 Jan 2021 11:04:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34138) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzMA9-0003ld-HT; Tue, 12 Jan 2021 11:04:53 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1692 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kzMA7-0001xo-L0; Tue, 12 Jan 2021 11:04:52 -0500 In-Reply-To: <87pn2aywjr.fsf@gmail.com> (message from Robert Pluim on Tue, 12 Jan 2021 17:00:56 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262994 Archived-At: > From: Robert Pluim > Cc: rtt@dasyatidae.com, emacs-devel@gnu.org > Date: Tue, 12 Jan 2021 17:00:56 +0100 > > > (dns-query "google.com" 'AAAA) > > => "2a00:1450:4009:80b:0:0:0:200e" > > > > So I'm not sure that test is reliable enough for these purposes. > > Itʼs checking if IPv6 names can be resolved, not if IPv6 works. If you > think thatʼs not a useful test, we can remove it. No, feel free to ignore me. I was just surprised it worked, that's all. > I can condition all the IPv6 tests on the following, which should > alleviate your concerns: > > ;; This will need updating when IANA assign more IPv6 global ranges. > (defun ipv6-is-available () > (and (featurep 'make-network-process '(:family ipv6)) > (cl-rassoc-if > (lambda (elt) > (and (eq 9 (length elt)) > (= (logand (aref elt 0) #xe000) #x2000))) > (network-interface-list)))) Thanks, that would be good, I think.