This is in preparation for supporting OpenFlow flow monitor request commands other than OFPFMC_ADD.
Signed-off-by: Simon Horman <ho...@verge.net.au> --- v2 * No change --- lib/ofp-util.c | 2 ++ lib/ofp-util.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 94ece8f..5c05c70 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -5273,7 +5273,9 @@ ofputil_decode_flow_monitor_request(struct ofputil_flow_monitor_request *rq, rq->id = ntohl(nfmr->id); rq->flags = nx_to_ofp14_flow_monitor_flags(flags); rq->out_port = u16_to_ofp(ntohs(nfmr->out_port)); + rq->out_group = OFPG_ANY; rq->table_id = nfmr->table_id; + rq->command = OFPFMC14_ADD; return nx_pull_match(msg, ntohs(nfmr->match_len), &rq->match, NULL, NULL); } diff --git a/lib/ofp-util.h b/lib/ofp-util.h index 2913e5a..24a6093 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -842,7 +842,9 @@ struct ofputil_flow_monitor_request { uint32_t id; enum ofp14_flow_monitor_flags flags; ofp_port_t out_port; + uint32_t out_group; uint8_t table_id; + enum ofp14_flow_monitor_command command; struct match match; }; -- 2.0.0.rc2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev