From: David Miller Subject: Re: [PATCH net] bridge: do not add port to router list when receives query with source 0.0.0.0 Date: Fri, 26 Oct 2018 16:02:07 -0700 (PDT) Message-ID: <20181026.160207.1492129555949054187.davem@davemloft.net> References: <1540520923-17589-1-git-send-email-liuhangbin@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, nikolay@cumulusnetworks.com, jiri@mellanox.com, linus.luessing@c0d3.blue To: liuhangbin@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:52108 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbeJ0HlD (ORCPT ); Sat, 27 Oct 2018 03:41:03 -0400 In-Reply-To: <1540520923-17589-1-git-send-email-liuhangbin@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Hangbin Liu Date: Fri, 26 Oct 2018 10:28:43 +0800 > Based on RFC 4541, 2.1.1. IGMP Forwarding Rules > > The switch supporting IGMP snooping must maintain a list of > multicast routers and the ports on which they are attached. This > list can be constructed in any combination of the following ways: > > a) This list should be built by the snooping switch sending > Multicast Router Solicitation messages as described in IGMP > Multicast Router Discovery [MRDISC]. It may also snoop > Multicast Router Advertisement messages sent by and to other > nodes. > > b) The arrival port for IGMP Queries (sent by multicast routers) > where the source address is not 0.0.0.0. > > We should not add the port to router list when receives query with source > 0.0.0.0. > > Reported-by: Ying Xu > Signed-off-by: Hangbin Liu Applied and queued up for -stable, thanks.