emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The netsec thread


From: Lars Ingebrigtsen
Subject: Re: The netsec thread
Date: Tue, 30 Jul 2019 13:30:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Robert Pluim <address@hidden> writes:

> I found the bottom half of the implementation, and just wrote the top
> half.  Iʼm 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ʼs a platform where thatʼs not
> true we'll have to adjust the test.
>
> Robert
>
> 2019-07-29  Robert Pluim  <address@hidden>
>
>       * 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 
> addresses.

OK; are you applying this to the netsec branch?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]