Skip to content

Commit 278e214

Browse files
liuhangbindavem330
authored andcommitted
Revert "bridge: do not add port to router list when receives query with source 0.0.0.0"
This reverts commit 5a2de63 ("bridge: do not add port to router list when receives query with source 0.0.0.0") and commit 0fe5119 ("net: bridge: remove ipv6 zero address check in mcast queries") The reason is RFC 4541 is not a standard but suggestive. Currently we will elect 0.0.0.0 as Querier if there is no ip address configured on bridge. If we do not add the port which recives query with source 0.0.0.0 to router list, the IGMP reports will not be about to forward to Querier, IGMP data will also not be able to forward to dest. As Nikolay suggested, revert this change first and add a boolopt api to disable none-zero election in future if needed. Reported-by: Linus Lüssing <linus.luessing@c0d3.blue> Reported-by: Sebastian Gottschall <s.gottschall@newmedia-net.de> Fixes: 5a2de63 ("bridge: do not add port to router list when receives query with source 0.0.0.0") Fixes: 0fe5119 ("net: bridge: remove ipv6 zero address check in mcast queries") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent af548a2 commit 278e214

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

net/bridge/br_multicast.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,14 +1204,7 @@ static void br_multicast_query_received(struct net_bridge *br,
12041204
return;
12051205

12061206
br_multicast_update_query_timer(br, query, max_delay);
1207-
1208-
/* Based on RFC4541, section 2.1.1 IGMP Forwarding Rules,
1209-
* the arrival port for IGMP Queries where the source address
1210-
* is 0.0.0.0 should not be added to router port list.
1211-
*/
1212-
if ((saddr->proto == htons(ETH_P_IP) && saddr->u.ip4) ||
1213-
saddr->proto == htons(ETH_P_IPV6))
1214-
br_multicast_mark_router(br, port);
1207+
br_multicast_mark_router(br, port);
12151208
}
12161209

12171210
static void br_ip4_multicast_query(struct net_bridge *br,

0 commit comments

Comments
 (0)