From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Getting local IP addresses from emacs Date: Thu, 14 Nov 2019 10:22:50 +0100 Message-ID: References: <87imnu5cif.fsf@gnus.org> <87mud62h9i.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="244417"; mail-complaints-to="usenet@blaine.gmane.org" Cc: eliz@gnu.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 14 10:23:55 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 1iVBM2-0011Tg-Kn for ged-emacs-devel@m.gmane.org; Thu, 14 Nov 2019 10:23:54 +0100 Original-Received: from localhost ([::1]:54712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVBM1-0004Bk-Dh for ged-emacs-devel@m.gmane.org; Thu, 14 Nov 2019 04:23:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60007) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVBLB-00045d-Mn for emacs-devel@gnu.org; Thu, 14 Nov 2019 04:23:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iVBL9-0000aR-EW for emacs-devel@gnu.org; Thu, 14 Nov 2019 04:23:01 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:34966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iVBL5-0000Y0-16; Thu, 14 Nov 2019 04:22:55 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id 8so5039126wmo.0; Thu, 14 Nov 2019 01:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=JJf+kw6gpbUwhw7VRaYMlPImoRsm+GN2d0e5RpPNVnU=; b=nXuYEdmmQ/cCiez0w5An1HlHXud+8R6xmCV/WmYteBKLc4whkW/42i44mcNhYAm9Yh eUp9EYEO4HPfx84/LLZOnQVIJphidffInPrYSJPOSHcFBTowam2kiMnFgO88JWDC6OGs cGYbUv0QZJ3vWzo5xze4My7/Vr3ieLMjnpxC5na9SW4lmDXjtJ+kYWgYApNkIVZMw05c ME1IuZ/up+74Zye5DJYBloYuBM2vY89+5djMr3hGIkyi8l1rAoH62s5MrGL/lAE7rT3j uAkp/oL7VwkXlSt8uqt/Ewusd11qKgUegAxVm3e09ECJlREt8wxwtJ+4ehoDLIVRvgXp GTkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=JJf+kw6gpbUwhw7VRaYMlPImoRsm+GN2d0e5RpPNVnU=; b=CEy0j1HFkzzpOlbDow1YfjsNqVE0QpLBt/XkaTQBC+Yv3Pu+t2OE36tPMPu112WcOY BudBa3nc0+bw6vi5iBn3b08o0T5uKdzOs6pDIbzFsVIM9jhHT2JQ+ve/XY21FyPFLNQk WAfCeEnrzQf/rNlpayUj+gQinIDU5K51D2SpcwhuTZ9NCD9GswfWUSYNNgByyZCMcrTK LJs89vdfsplYtpEFSZF+VwNhxpWJHLnX83Q1ICNcJNxhAPG/rzaYHUpRNfOE9OH84W6l K5l+WC/SsdoQvObMOgC9yIvuVurF+hAQjsJVa08ppaMi+TRcytWHECqe+vhoojRPLz+1 n9Jw== X-Gm-Message-State: APjAAAUUC53bBhp01G2NeuCiDCWXosMP5XDYQalHlTFoRtSKmumNSKXr MeUSYY5H6NCfowA/KLzNqik7JvpD X-Google-Smtp-Source: APXvYqxjaTp7FWtPggxUKqN0ROk4oZC6hyNvyLFKN4WDFjYltd+MceqNKHwK7y3B8cYw4RBNcAKtcQ== X-Received: by 2002:a1c:720b:: with SMTP id n11mr6302465wmc.60.1573723372553; Thu, 14 Nov 2019 01:22:52 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id 189sm6056264wmc.7.2019.11.14.01.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 01:22:51 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <87mud62h9i.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 08 Nov 2019 22:24:41 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32d 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:242135 Archived-At: >>>>> On Fri, 08 Nov 2019 22:24:41 +0100, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> You get one entry per address, but the name is always that of the >> underlying interface, so on your typical IPv4/v6 dual stack machine >> you get stuff like: >> >> ("lo0" . >> [0 0 0 0 0 0 0 1 0]) >> ("lo0" . >> [127 0 0 1 0]) So I have a working implementation of this, including a cargo-culted MSWindows version. Should I post the patch here, or would people prefer a scratch branch? (the patch is ~600 lines). Robert