From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: ipv6: Allow connect to linklocal address from socket bound to vrf Date: Mon, 08 Jan 2018 14:11:35 -0500 (EST) Message-ID: <20180108.141135.1290840529204977450.davem@davemloft.net> References: <20180104220354.30524-1-dsahern@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: dsahern@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:46690 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756315AbeAHTLg (ORCPT ); Mon, 8 Jan 2018 14:11:36 -0500 In-Reply-To: <20180104220354.30524-1-dsahern@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern Date: Thu, 4 Jan 2018 14:03:54 -0800 > Allow a process bound to a VRF to connect to a linklocal address. > Currently, this fails because of a mismatch between the scope of the > linklocal address and the sk_bound_dev_if inherited by the VRF binding: > $ ssh -6 fe80::70b8:cff:fedd:ead8%eth1 > ssh: connect to host fe80::70b8:cff:fedd:ead8%eth1 port 22: Invalid argument > > Relax the scope check to allow the socket to be bound to the same L3 > device as the scope id. > > This makes ipv6 linklocal consistent with other relaxed checks enabled > by commits 1ff23beebdd3 ("net: l3mdev: Allow send on enslaved interface") > and 7bb387c5ab12a ("net: Allow IP_MULTICAST_IF to set index to L3 slave"). > > Signed-off-by: David Ahern Applied, thanks David.