From fe8ad0db1bc8654b87a8c70f381810288cc71e26 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 5 Jan 2009 16:00:19 -0800 Subject: [PATCH] Do not forward multicast addresses that must not be, in learning-switch. --- lib/learning-switch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/learning-switch.c b/lib/learning-switch.c index e89b2573c..e674881bc 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -417,6 +417,10 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn, void *opi_) } } + if (eth_addr_is_reserved(flow.dl_src)) { + goto drop_it; + } + if (!may_recv(sw, in_port, false)) { /* STP prevents receiving anything on this port. */ goto drop_it; -- 2.47.0