X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flearning-switch.c;h=235e9d442d6a179aa9cc115f0e502e1784e1cee8;hb=de0f3156a0ad6cc86b042d19ec8faf3c3a282ed5;hp=c1cd909f5ed47586b1c14c2c779e082f32c6d30a;hpb=a07c15bc39154c2a31b9c14d54db1b10a8f77312;p=sliver-openvswitch.git diff --git a/lib/learning-switch.c b/lib/learning-switch.c index c1cd909f5..235e9d442 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -590,13 +590,13 @@ process_packet_in(struct lswitch *sw, const struct ofp_header *oh) /* If the switch didn't buffer the packet, we need to send a copy. */ if (pi.buffer_id == UINT32_MAX && out_port != OFPP_NONE) { - queue_tx(sw, ofputil_encode_packet_out(&po)); + queue_tx(sw, ofputil_encode_packet_out(&po, sw->protocol)); } } else { /* We don't know that MAC, or we don't set up flows. Send along the * packet without setting up a flow. */ if (pi.buffer_id != UINT32_MAX || out_port != OFPP_NONE) { - queue_tx(sw, ofputil_encode_packet_out(&po)); + queue_tx(sw, ofputil_encode_packet_out(&po, sw->protocol)); } } }