From: Ben Pfaff Date: Fri, 26 Dec 2008 19:06:09 +0000 (-0800) Subject: vswitchd: Fix treatment of unbuffered packets. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12bfd3f593b7f0666316cb1ba8a1b364f9b28f3;p=openvswitch vswitchd: Fix treatment of unbuffered packets. Before, buggy code caused unbuffered packets to be dropped. This fixes the problem. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 6b782bdb..2dc6bb9a 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1055,7 +1055,7 @@ send_packets(struct bridge *br, const struct flow *flow, opo->in_port = flow->in_port; put_actions(dsts, n_dsts, ntohs(flow->dl_vlan), pbuf); opo = pbuf->data; - opo->actions_len = htons(actions_len); + opo->actions_len = htons(pbuf->size - sizeof *opo); if (pkt->buffer_id == UINT32_MAX) { ofpbuf_put(pbuf, pkt->buf->data, pkt->buf->size); }