ovs-ofctl: Accept only valid flow_mod and flow_stats_request fields.
authorBen Pfaff <blp@nicira.com>
Wed, 22 Jun 2011 17:37:18 +0000 (10:37 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 23 Jun 2011 19:21:13 +0000 (12:21 -0700)
commitc821124b25eb72b8c81894a5560e59c5cd5845f0
treefcd310c8c7044b48cf5b5af9bb42b07774ca7007
parentb053c7c1a0c12669a4591e73893d4f426fef571f
ovs-ofctl: Accept only valid flow_mod and flow_stats_request fields.

OpenFlow commands have several idiosyncratic fields that are used in some
cases and ignored in others.  Until now, ovs-ofctl has been lax about
allowing some of them in places where they are ignored.  This commit
tightens the checks to exactly what is allowed.

Bug #5979.
Reported-by: Reid Price <reid@nicira.com>
lib/ofp-parse.c
lib/ofp-parse.h
utilities/ovs-ofctl.8.in
utilities/ovs-ofctl.c