From: Ben Pfaff Date: Tue, 6 Jan 2009 00:00:19 +0000 (-0800) Subject: Do not forward multicast addresses that must not be, in learning-switch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6abda9719bb8b87ad9179534d8c005f56ea8af;p=openvswitch Do not forward multicast addresses that must not be, in learning-switch. --- 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;