summaryrefslogtreecommitdiff
path: root/lib/ofp-util.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-12-21 19:01:18 -0800
committerEthan Jackson <ethan@nicira.com>2012-01-10 14:30:15 -0800
commit3e3252fa1d7e057463ddbd66dab84f0d02ef0f1d (patch)
treef36f8e7fd77f21feeefb2ef7f37f97b64c3d2056 /lib/ofp-util.h
parent29ebe8803c3a1ef03cbc92fbc352a2cdce5a8f55 (diff)
downloadopenvswitch-3e3252fa1d7e057463ddbd66dab84f0d02ef0f1d.tar.gz
ofp-util: Don't use ofpbuf in ofputil_packet_in struct.
This will make the memory ownership clearer in future patches which make more extensive use of ofputil_packet_in. Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/ofp-util.h')
-rw-r--r--lib/ofp-util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ofp-util.h b/lib/ofp-util.h
index adff0d9ba..b9c2d54e4 100644
--- a/lib/ofp-util.h
+++ b/lib/ofp-util.h
@@ -214,7 +214,9 @@ struct ofpbuf *ofputil_encode_flow_removed(const struct ofputil_flow_removed *,
/* Abstract packet-in message. */
struct ofputil_packet_in {
- struct ofpbuf *packet;
+ const void *packet;
+ size_t packet_len;
+
uint16_t in_port;
uint8_t reason; /* One of OFPR_*. */