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, 13 Jan 2009 01:14:23 +0000 (17:14 -0800)
lib/learning-switch.c

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