git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovs-ofctl: Accept only valid flow_mod and flow_stats_request fields.
[sliver-openvswitch.git]
/
utilities
/
ovs-ofctl.c
diff --git
a/utilities/ovs-ofctl.c
b/utilities/ovs-ofctl.c
index
7d3b7fb
..
3d10178
100644
(file)
--- a/
utilities/ovs-ofctl.c
+++ b/
utilities/ovs-ofctl.c
@@
-1035,7
+1035,7
@@
read_flows_from_file(const char *filename, struct classifier *cls, int index)
struct flow_mod fm;
ofpbuf_init(&actions, 64);
- parse_ofp_str(&fm,
&actions
, ds_cstr(&s), true);
+ parse_ofp_str(&fm,
OFPFC_ADD
, ds_cstr(&s), true);
version = xmalloc(sizeof *version);
version->cookie = fm.cookie;