Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp826334imm; Thu, 13 Sep 2018 08:18:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbK15dCl6mHtCf3XkqioJkrd1ECelYEOGdTh47t48KKaVNmpoulFHL1fLZQkzxCnHOly+c7 X-Received: by 2002:a17:902:3a3:: with SMTP id d32-v6mr7773605pld.294.1536851935530; Thu, 13 Sep 2018 08:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536851935; cv=none; d=google.com; s=arc-20160816; b=nAfoF5rPbbUZ1XNV7KfL7t5s6jIOSVQhYa6Tbpjh6ECRDMtoaJOOVmWX3Vyt1foGCl s6c1qRrgK4xAdWHpj7ZuYtMbky65cj0SZ6+Fp85qAbqetACTGODLl8iByvCas4EYV3P4 M5TWYgGSrYp9AxuMMJAbRdVPO26FjERmB5tz5+9/7T/Yewbk2aj0LoilF5vV+hzQBdra OmHvu2iqerDnIfEKYrN1Mb1C181L7JNKHr5MGBaobxDzn2d+9JMk7oQNd8kESw02iXVo gYYnGi+hoLAvkMiGH7qfW5W/bQif4bftdsRcJjlph9piI9bIm3jzo8fMIm2KGc+sZPBA OaNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=VMvJa5kF5Igpl+1B9CgTUD1qHnLIUsuUL96y93xXn3s=; b=pw2orz+nLbJnLPHE2vwFVtr4NtKKQqAV41wh4EPWNuKoOLoXOnP91fO7oDUAXneEQI KHt2OZqIDNN1qKUd9OuaXER5Z9oVBcGNgctzwWul4pHQbtBecI9WrdiNT7ixmmBAa+hn Xpud6xJkPVxMcUszBZBY6aDEqpMMAKgJPTPYbY2+Fn+5d5ANNyj2KbEdhDRvPZm4R0Xj uVsRB5IqCDTQIJe6Hfz4fF5iki6X6NukozPkhE9h/AdI5tRNE7CRBxkNzZIKExwr2em8 umpoWAxEMYxP8BOINCC73U3uowP++7UQbDc3Ey/KVClMXAVTaYpmW9l+QyLYdJeo6MB+ aZLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5-v6si3876253pls.435.2018.09.13.08.18.27; Thu, 13 Sep 2018 08:18:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728521AbeIMU1l (ORCPT + 99 others); Thu, 13 Sep 2018 16:27:41 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:49844 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbeIMU1k (ORCPT ); Thu, 13 Sep 2018 16:27:40 -0400 Received: from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net [74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id F308213FCB0E3; Thu, 13 Sep 2018 08:17:42 -0700 (PDT) Date: Thu, 13 Sep 2018 08:17:42 -0700 (PDT) Message-Id: <20180913.081742.846333906880381162.davem@davemloft.net> To: nautsch2@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, gregkh@linuxfoundation.org, ek@google.com, tglx@linutronix.de, maze@google.com, shli@fb.com, kstewart@linuxfoundation.org, pombredanne@nexb.com Subject: Re: [PATCH 1/1] ipv6: Add sockopt IPV6_MULTICAST_ALL analogue to IP_MULTICAST_ALL From: David Miller In-Reply-To: <20180910082715.11506-2-nautsch2@gmail.com> References: <20180910082715.11506-1-nautsch2@gmail.com> <20180910082715.11506-2-nautsch2@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 13 Sep 2018 08:17:43 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Naujoks Date: Mon, 10 Sep 2018 10:27:15 +0200 > The socket option will be enabled by default to ensure current behaviour > is not changed. This is the same for the IPv4 version. > > A socket bound to in6addr_any and a specific port will receive all traffic > on that port. Analogue to IP_MULTICAST_ALL, disable this behaviour, if > one or more multicast groups were joined (using said socket) and only > pass on multicast traffic from groups, which were explicitly joined via > this socket. > > Without this option disabled a socket (system even) joined to multiple > multicast groups is very hard to get right. Filtering by destination > address has to take place in user space to avoid receiving multicast > traffic from other multicast groups, which might have traffic on the same > port. > > The extension of the IP_MULTICAST_ALL socketoption to just apply to ipv6, > too, is not done to avoid changing the behaviour of current applications. > > Signed-off-by: Andre Naujoks > Acked-By: YOSHIFUJI Hideaki Applied to net-next, thank you.