From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 96905665 for ; Tue, 20 Dec 2016 04:26:13 +0000 (UTC) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 211b4e14 for ; Tue, 20 Dec 2016 04:26:13 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c6f1752a for ; Tue, 20 Dec 2016 04:26:13 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 4642f4d2 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Tue, 20 Dec 2016 04:26:12 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id y198so167067456oia.1 for ; Mon, 19 Dec 2016 20:33:13 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <89D5D16F-84AF-4FC6-9AA1-55EFCB6A3B9E@danrl.com> References: <20161220011334.GB16814@tuxmachine.polynome.dn42> <89D5D16F-84AF-4FC6-9AA1-55EFCB6A3B9E@danrl.com> From: "Jason A. Donenfeld" Date: Tue, 20 Dec 2016 05:33:11 +0100 Message-ID: Subject: Re: openwrt route_allowed_ips is inprecise To: Dan Luedtke Content-Type: text/plain; charset=UTF-8 Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Dec 20, 2016 at 4:38 AM, Dan Luedtke wrote: > No objection but a remark: It is now even more complex and I think shell script is not the right solution. This is *not* a complex algorithm and can be implemented correctly in shell. It's on my list for tomorrow to actually clean that up. > This is pretty straightforward with netlink No, it's much less straight-forward with raw netlink. Raw netlink involves hundreds of lines of code to do anything at all. A real mess. Fortunately there are wrapper libraries you can use from various languages to make it easier. > Regarding LEDE, netifd should track the routes being added and the extra routes do not really do harm. Alright then... Speaking of netifd, did you ever fix that netifd issue with the IP dependency?