From ac6abda9719bb8b87ad9179534d8c005f56ea8af 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 bd7da226..c53ff39e 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -425,6 +425,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.30.2