From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 6f331ac3 for ; Sun, 13 Nov 2016 20:17:22 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 84c372a6 for ; Sun, 13 Nov 2016 20:17:22 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id d1c11009 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Sun, 13 Nov 2016 20:17:20 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id b14so45252112lfg.2 for ; Sun, 13 Nov 2016 12:19:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <405b2e79-854d-4c30-07b0-bd524137d2f6@cumulusnetworks.com> References: <20161113132347.17907-1-Jason@zx2c4.com> <405b2e79-854d-4c30-07b0-bd524137d2f6@cumulusnetworks.com> From: "Jason A. Donenfeld" Date: Sun, 13 Nov 2016 21:19:47 +0100 Message-ID: To: David Ahern Content-Type: text/plain; charset=UTF-8 Cc: Netdev , Hannes Frederic Sowa , LKML , WireGuard mailing list , YOSHIFUJI Hideaki Subject: Re: [WireGuard] [PATCH] ip6_output: ensure flow saddr actually belongs to device List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi David, On Sun, Nov 13, 2016 at 5:30 PM, David Ahern wrote: > You can't require the address to be on the dst device. e.g., it can be an address from the loopback/vrf device. > > This block needs to be done at function entry, and pass dev as NULL to mean is the address assigned to any interface. That gets you the equivalency of the IPv4 check. I gave v2 my best shot. Hopefully it's adequate, but I have a feeling it might be best for you to just code up what you have in mind. Regards, Jason