From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: The netsec thread Date: Tue, 30 Jul 2019 13:30:56 +0200 Message-ID: References: <83h8kqwukq.fsf@gnu.org> <86zhyh7nli.fsf@gmail.com> <86pnzdrn8u.fsf@gmail.com> <834l36koak.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="172955"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 30 13:31:28 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsQLo-000iuA-Ct for ged-emacs-devel@m.gmane.org; Tue, 30 Jul 2019 13:31:28 +0200 Original-Received: from localhost ([::1]:59888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsQLn-00041O-Ev for ged-emacs-devel@m.gmane.org; Tue, 30 Jul 2019 07:31:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53317) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsQLQ-0003zY-KV for emacs-devel@gnu.org; Tue, 30 Jul 2019 07:31:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsQLP-0000qJ-JZ for emacs-devel@gnu.org; Tue, 30 Jul 2019 07:31:04 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:54138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hsQLO-0000p5-Rw for emacs-devel@gnu.org; Tue, 30 Jul 2019 07:31:03 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsQLJ-00078y-6p for emacs-devel@gnu.org; Tue, 30 Jul 2019 13:30:59 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUrCQWDGAQOAwPJIwLV JgLXXz9b40YKAAACVElEQVQ4jV2US3IjIQyGJTqzl1DPXsgXAIsDuAuyT01N7n+VEZ3Y8Ri7qwwf evyS2pBwn/fVH7+aAYDKz8F9ZYNkBvpKRlEgs2L7/DzXezx/F0kGsyqnVzACcNKa+ngBEcOgj9br i6tqgGe06+djnWAk2L5A/1/HzLDfQXz8Gcw7GP1ZDX8D2t39GTj0SassDMKnJ7+DpdIsoZW0yZzH d9ARFkzItlGxLVK/GT5czSGxdYIeZ4fqV9DTsnJWQV/mB4J8gZXKESEk8k37oIufkhPsI2y8WZ8N EzfSxuuqwdsCM1OvKzsAk+XqyAGW4mx7Xc3EaizuqyThcb/1atK9qqGEXNOxX8+y35gMnJLa5sJK pSEtMGqOVno2tcLYkBlguRq2wuI4CDUSc9JeS10xrnE1kUeOnAp5Yzm2CtyjPiWXjH4zpkLDWVoh SG/RYM1m0toSyN3z3lABl4qSAQMgMW0yaB9QoMwptWTFzVnZXbxGmQSg9AaAtXBxTtsCDcJVgsuc yCrKpVHo8zCIYRM9wUgbEbToe/dhLZluvJRvBwq3xpGnt6aerEiDqL4E8Ijt65tQspXm0GK4jnRp 0tb1HlBq49HDYkStpY5jwxpDyuC3JrMDMcaN5j7Yr6tDuoo1J5Sr+tVCwW2rV/FxMIeLGLgLMUcn MCrKY83ngT3CTVDVKPvvnxfns07Z6w6WlEzenwjFa2kIRl7F3/HJAldDozD7Ebtf9+OPeGxNmOnO a/vxBPIJ8Mhr++cb/InfJwA0DVoSrkEFu684L5zsIrnwiL+JB/gHNzzIbvr5IfcAAAAASUVORK5C YII= In-Reply-To: (Robert Pluim's message of "Mon, 29 Jul 2019 16:02:11 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239023 Archived-At: Robert Pluim writes: > I found the bottom half of the implementation, and just wrote the top > half. I=CA=BCm wondering if 'network-lookup-address-info' should just > return 5/9 element vectors like 'network-interface-info' (for > IPv4/IPv6), so that remembering to chop the port off the end becomes > unnecessary. Makes sense, I think. > Tested only on macOS so far. It covers the localhost case because > 'network-interface-list' returns the loopback interface, which is true > on my GNU/Linux box as well. If there=CA=BCs a platform where that=CA=BCs= not > true we'll have to adjust the test. > > Robert > > 2019-07-29 Robert Pluim > > * lisp/net/nsm.el (nsm-network-same-subnet): New function. Checks > if an ip address is in the same subnet as another one. > (nsm-should-check): Use nsm-network-same-subnet to see if we're > connecting to a local subnet machine. Remove checks for RFC1918 address= es. OK; are you applying this to the netsec branch? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no