From e12bfd3f593b7f0666316cb1ba8a1b364f9b28f3 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 26 Dec 2008 11:06:09 -0800 Subject: [PATCH] vswitchd: Fix treatment of unbuffered packets. Before, buggy code caused unbuffered packets to be dropped. This fixes the problem. --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2