summaryrefslogtreecommitdiff
path: root/lib/ofp-util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-09 10:31:49 -0800
committerBen Pfaff <blp@nicira.com>2010-12-09 10:31:49 -0800
commit9b045a0c66e9dfa6dd0266efb023823eefe82045 (patch)
treeabe36a579998be17896799938379e314a522a9b1 /lib/ofp-util.h
parent8d7fb7eef5e10dc47710e86554018b256ba3272f (diff)
downloadopenvswitch-9b045a0c66e9dfa6dd0266efb023823eefe82045.tar.gz
ofp-print: Print OFPUTIL_NXT_FLOW_REMOVED.
Diffstat (limited to 'lib/ofp-util.h')
-rw-r--r--lib/ofp-util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ofp-util.h b/lib/ofp-util.h
index c3ed2b802..ea7939c19 100644
--- a/lib/ofp-util.h
+++ b/lib/ofp-util.h
@@ -155,6 +155,22 @@ int ofputil_decode_flow_stats_request(struct flow_stats_request *,
struct ofpbuf *ofputil_encode_flow_stats_request(
const struct flow_stats_request *, enum nx_flow_format);
+/* Flow removed message, independent of flow format. */
+struct ofputil_flow_removed {
+ struct cls_rule rule;
+ ovs_be64 cookie;
+ uint8_t reason; /* One of OFPRR_*. */
+ uint32_t duration_sec;
+ uint32_t duration_nsec;
+ uint16_t idle_timeout;
+ uint64_t packet_count;
+ uint64_t byte_count;
+};
+
+int ofputil_decode_flow_removed(struct ofputil_flow_removed *,
+ const struct ofp_header *,
+ enum nx_flow_format);
+
/* OpenFlow protocol utility functions. */
void *make_openflow(size_t openflow_len, uint8_t type, struct ofpbuf **);
void *make_nxmsg(size_t openflow_len, uint32_t subtype, struct ofpbuf **);