summaryrefslogtreecommitdiff
path: root/lib/ofp-util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-15 09:49:14 -0700
committerBen Pfaff <blp@nicira.com>2011-03-29 12:28:10 -0700
commit588cd7b5d2e4a6ac582aa3039ba08e199d24b4fa (patch)
treec1025920041ae25ae00eba852e3ad7b3a662c606 /lib/ofp-util.h
parent16f4f61d0f7b0010461bd5c214d4bd11c8ae9788 (diff)
downloadopenvswitch-588cd7b5d2e4a6ac582aa3039ba08e199d24b4fa.tar.gz
ofproto: Factor building of flow_removed messages out into ofp-util.
This removes some code from ofproto.c.
Diffstat (limited to 'lib/ofp-util.h')
-rw-r--r--lib/ofp-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ofp-util.h b/lib/ofp-util.h
index 439495bb1..c31165bb2 100644
--- a/lib/ofp-util.h
+++ b/lib/ofp-util.h
@@ -189,6 +189,8 @@ struct ofputil_flow_removed {
int ofputil_decode_flow_removed(struct ofputil_flow_removed *,
const struct ofp_header *,
enum nx_flow_format);
+struct ofpbuf *ofputil_encode_flow_removed(const struct ofputil_flow_removed *,
+ enum nx_flow_format);
/* OpenFlow protocol utility functions. */
void *make_openflow(size_t openflow_len, uint8_t type, struct ofpbuf **);