From 3e3252fa1d7e057463ddbd66dab84f0d02ef0f1d Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 21 Dec 2011 19:01:18 -0800 Subject: 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 --- lib/ofp-util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/ofp-util.h') 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_*. */ -- cgit v1.2.1