Do not forward multicast addresses that must not be, in learning-switch.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Jan 2009 00:00:19 +0000 (16:00 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 6 Jan 2009 00:00:19 +0000 (16:00 -0800)
lib/learning-switch.c

index bd7da226d23e10bc84bb3dc349ab99d833f5b70f..c53ff39e4bb81587f72b79ce53c2c66c8640ca10 100644 (file)
@@ -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;