From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: ai_flags in calls to getaddrinfo Date: Fri, 01 Jan 2021 11:59:37 +0100 Message-ID: <87zh1sc486.fsf@gnus.org> References: <83sg7mggls.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11392"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 01 12:00:41 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 1kvIAj-0002sd-Tf for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jan 2021 12:00:41 +0100 Original-Received: from localhost ([::1]:54962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvIAi-0003E4-W3 for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jan 2021 06:00:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvI9r-0002k6-C5 for emacs-devel@gnu.org; Fri, 01 Jan 2021 05:59:49 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:46386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvI9n-0005Qd-I2; Fri, 01 Jan 2021 05:59:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=jT4tcPJ1m8OvOB1//y1MQ2g6BE0SZMAsTOIoFSF3WXQ=; b=ECQ2xk4ZOukfEeLBPOtdMwFuCj h4r2zZKjKXyl+7cRekCxa8ce/FzHbFzt6Kl9TRn6WROb0A+rukPJyDDdlRLwiIuZqC2HAwZIv3ajW s85VwiSwZuMInoLjFD8oSVPRBUtKroRr96wCjH19oWK0kAS9X7hW2yXyGtMmfto9W+nU=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kvI9i-0000Ca-Pk; Fri, 01 Jan 2021 11:59:41 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEUhQ1Zsjpx7mKP/ //9GoNHaAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UBAQotB7xYJN4AAAFTSURBVCjPbZKxasMwEIbv RGxophYsaDVl6JSnkKF0VsHK4KlDO1hPoSmzC/GSyYWoxHrK3p2S0KEeTnz3n/67Ewb4/3MSK4l4 KkdJFWiIHaiF6rSlasz5ayAwTpM62TmMDOoe4BtGw0r3RsqAkU1Nh5w6itd2agjaYmySW13bM5CB L7CeNEm2QD1yDPlRJpPykC6TuepyHXABqz84hwVabUO2RWlb5UweC2hQEZ4ZqgzaYYSNKANsD9QT L+C7azscVrVMvOLgsT+xg0Bjdx3UAO8ywogCM9Ia9ck2oKY8e4YE5BaW1GfqmuwLl/9khkVWrgXA yzZ45DugOWBOAk+eVjF98jt+K37+TX3GnpXQAZplwcA+4QBq39oCmQY9Q6Sd2WgCtY4RuQ/sCOwc K1bgNTllTawFHj6dovUqGasKkxydxN7b209zN3l3A9DtHwBs5PgFAqBahyQmgO0AAAAldEVYdGRh dGU6Y3JlYXRlADIwMjEtMDEtMDFUMTA6NDU6MDcrMDA6MDBsZnTFAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIxLTAxLTAxVDEwOjQ1OjA3KzAwOjAwHTvMeQAAAABJRU5ErkJggg== X-Now-Playing: Dif Juz's _Who Says So?_: "Pass It On Charlie" In-Reply-To: <83sg7mggls.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 31 Dec 2020 17:06:23 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:262232 Archived-At: Eli Zaretskii writes: > Adding the AI_V4MAPPED flag, as in the patch below, seems to solve the > problem. So I wonder why we don't do this in general. I'm not an > expert on DNS, so would people who know more than I do about this > please comment on whether the patch below is a good idea? I think that when the user asks for ipv6 explicitly, they should get back ipv6 (or get nothing/a failure). If the user has specified the protocol, it's presumably because they really want that protocol. If they don't specify the protocol version, they get back either/both ipv6/ipv4 now (depending on the system), don't they? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no