diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-12-21 19:01:18 -0800 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2012-01-10 14:30:15 -0800 |
commit | 3e3252fa1d7e057463ddbd66dab84f0d02ef0f1d (patch) | |
tree | f36f8e7fd77f21feeefb2ef7f37f97b64c3d2056 /lib/ofp-util.h | |
parent | 29ebe8803c3a1ef03cbc92fbc352a2cdce5a8f55 (diff) | |
download | openvswitch-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.h | 4 |
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_*. */ |