summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoXiong Ding <dingxiaoxiong@huawei.com>2020-09-30 14:44:00 +0800
committerIlya Maximets <i.maximets@ovn.org>2020-12-21 18:48:21 +0100
commit39c4c536f0909d9195b13cf3fa543954eb65b13a (patch)
tree9e7624cafa1559b0daf88b4f0631edda17703921
parentcc313a7121984080fc788f30a483a81df9e29212 (diff)
downloadopenvswitch-39c4c536f0909d9195b13cf3fa543954eb65b13a.tar.gz
ofproto-dpif-xlate: Stop forwarding MLD reports to group ports.
According with rfc4541 section 2.1.1, a snooping switch should forward membership reports only to ports with routers attached.The current code violates the RFC forwarding membership reports to group ports as well. The same issue doesn't exist with IPv4. Fixes: 06994f879c ("mcast-snooping: Add Multicast Listener Discovery support") Signed-off-by: XiaoXiong Ding <dingxiaoxiong@huawei.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
-rw-r--r--ofproto/ofproto-dpif-xlate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index ab172b94f..168d7c55f 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -2476,6 +2476,7 @@ xlate_normal(struct xlate_ctx *ctx)
xlate_report(ctx, "MLD query, flooding");
xlate_normal_flood(ctx, in_xbundle, vlan);
}
+ return;
} else {
if (is_ip_local_multicast(flow, wc)) {
/* RFC4541: section 2.1.2, item 2: Packets with a dst IP