From: Jarno Rajahalme Date: Mon, 26 Nov 2012 17:44:38 +0000 (-0800) Subject: ofp-util: Check out_group on flow_mod only for "delete" commands. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09861c3f95952943398126a3588a26faf34369b0;p=openvswitch ofp-util: Check out_group on flow_mod only for "delete" commands. This conforms with OpenFlow 1.1+ wording. Signed-off-by: Jarno Rajahalme Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index b7feff80..bab6b2ce 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1435,7 +1435,9 @@ ofputil_decode_flow_mod(struct ofputil_flow_mod *fm, if (error) { return error; } - if (ofm->out_group != htonl(OFPG_ANY)) { + if ((ofm->command == OFPFC_DELETE + || ofm->command == OFPFC_DELETE_STRICT) + && ofm->out_group != htonl(OFPG_ANY)) { return OFPERR_OFPFMFC_UNKNOWN; } fm->flags = ntohs(ofm->flags);