2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

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>
This commit is contained in:
Ben Pfaff
2011-06-22 10:37:18 -07:00
parent b053c7c1a0
commit c821124b25
4 changed files with 68 additions and 29 deletions

View File

@@ -29,7 +29,7 @@ struct flow_stats_request;
struct list;
struct ofpbuf;
void parse_ofp_str(struct flow_mod *, struct ofpbuf *actions, const char *str_,
void parse_ofp_str(struct flow_mod *, int command, const char *str_,
bool verbose);
void parse_ofp_flow_mod_str(struct list *packets,