2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

learning-switch: Reserved addresses are destinations, not sources.

A switch is not supposed to forward packets directed to MAC addresses
01:80:c2:00:00:0x.  This code was instead dropping packets *from* those
addresses.

(This code is only used by ovs-controller, so the bug is not a big deal.)
This commit is contained in:
Ben Pfaff
2010-07-15 16:02:46 -07:00
parent af9af3e21d
commit 5a003f6067

View File

@@ -410,7 +410,8 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn, void *opi_)
}
}
if (eth_addr_is_reserved(flow.dl_src)) {
/* Drop frames for reserved multicast addresses. */
if (eth_addr_is_reserved(flow.dl_dst)) {
goto drop_it;
}