X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=secchan%2Fsecchan.c;h=037cc7682937a7718a31259f4e9618161073a9f1;hb=f68ad8aecb9d39a27b47a98ba96635cde9b170c0;hp=08002143115cb2e6991093d91dc4bb957b11c896;hpb=4196aaf17e52253b065d3aef5ff943c2b755b7d9;p=openvswitch diff --git a/secchan/secchan.c b/secchan/secchan.c index 08002143..037cc768 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -396,10 +396,7 @@ local_hook(struct relay *r) flow_extract(&pkt, in_port, &flow); /* Deal with local stuff. */ - if (!rconn_is_connected(r->halves[HALF_REMOTE].rconn) - && eth_addr_is_broadcast(flow.dl_dst)) { - out_port = OFPP_FLOOD; - } else if (in_port == OFPP_LOCAL) { + if (in_port == OFPP_LOCAL) { out_port = mac_learning_lookup(local_ml, flow.dl_dst); } else if (eth_addr_equals(flow.dl_dst, local_mac)) { out_port = OFPP_LOCAL;