From: YOSHIFUJI Hideaki Subject: Re: [PATCH net] net: ipv6: Fix ping to link-local addresses. Date: Tue, 9 Aug 2016 17:37:25 +0900 Message-ID: References: <1470642127-574-1-git-send-email-lorenzo@google.com> <20160808.143500.473355495580691289.davem@davemloft.net> <20160808.222030.1314134961786852070.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: hideaki.yoshifuji@miraclelinux.com, Lorenzo Colitti , netdev , Hannes Frederic Sowa To: Erik Kline , David Miller Return-path: Received: from mail-pa0-f41.google.com ([209.85.220.41]:34055 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752455AbcHIIh3 (ORCPT ); Tue, 9 Aug 2016 04:37:29 -0400 Received: by mail-pa0-f41.google.com with SMTP id fi15so3448394pac.1 for ; Tue, 09 Aug 2016 01:37:29 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Erik Kline wrote: > On 9 August 2016 at 14:20, David Miller wrote: >> From: Lorenzo Colitti >> Date: Tue, 9 Aug 2016 10:00:25 +0900 >> >>> Note that pretty much every sendmsg codepath allows other data to take >>> precedence over sk_bound_dev_if: >>> >>> - udpv6_sendmsg: if sin6_scope_id specified on a scoped address >>> - rawv6_sendmsg: if sin6_scope_id specified on a scoped address >>> - l2tp_ip6_sendmsg: if sin6_scope_id specified on a scoped address >>> - ip_cmsg_send: if IP_PKTINFO or IPV6_PKTINFO specified >>> >>> What should I do about those? -EINVAL? Ignore the conflicting data? Leave as is? >> >> That's a good point, I guess this needs some more thought. > > I could see a point of view that says when bound_if is in play sending > to destinations on/via other interfaces--by any mechanism--should > effectively get ENETUNREACH (or something). +1 > > That does seem like I would involve changing some existing behavior, though. > The use of sin6_scope_id and SO_BINDTODEVICE with different interfaces is incorrect and should be rejected. -- Hideaki Yoshifuji Technical Division, MIRACLE LINUX CORPORATION