From 4617e2c141500f8b06d1e9b1478b286756a3e391 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 24 Nov 2010 02:13:15 -0800 Subject: [PATCH] ofproto: set up helpful flow pointers for odp miss messages This flow copies the header pointers calculated in handle_odp_miss_msg to the relevant packet so they can be used later on. --- ofproto/ofproto.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 9a4702e9..6499c9fd 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -4462,6 +4462,11 @@ handle_odp_miss_msg(struct ofproto *p, struct ofpbuf *packet) payload.size = msg->length - sizeof *msg; flow_extract(&payload, msg->arg, msg->port, &flow); + packet->l2 = payload.l2; + packet->l3 = payload.l3; + packet->l4 = payload.l4; + packet->l7 = payload.l7; + /* Check with in-band control to see if this packet should be sent * to the local port regardless of the flow table. */ if (in_band_msg_in_hook(p->in_band, &flow, &payload)) { -- 2.30.2