projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cfm: Don't report unexpected remote endpoints.
[openvswitch]
/
lib
/
ofp-parse.c
diff --git
a/lib/ofp-parse.c
b/lib/ofp-parse.c
index 1c69d880bdda56eb299a6ceea56c88b05fa30501..de7cd9c72e17603dc096a21c330e7113baf2ab67 100644
(file)
--- a/
lib/ofp-parse.c
+++ b/
lib/ofp-parse.c
@@
-871,8
+871,8
@@
parse_ofp_flow_mod_str(struct list *packets, enum nx_flow_format *cur_format,
* 'stream' and the command is always OFPFC_ADD. Returns false if end-of-file
* is reached before reading a flow, otherwise true. */
bool
* 'stream' and the command is always OFPFC_ADD. Returns false if end-of-file
* is reached before reading a flow, otherwise true. */
bool
-parse_ofp_
add_flow
_file(struct list *packets, enum nx_flow_format *cur,
- FILE *stream)
+parse_ofp_
flow_mod
_file(struct list *packets, enum nx_flow_format *cur,
+ FILE *stream
, uint16_t command
)
{
struct ds s;
bool ok;
{
struct ds s;
bool ok;
@@
-880,7
+880,7
@@
parse_ofp_add_flow_file(struct list *packets, enum nx_flow_format *cur,
ds_init(&s);
ok = ds_get_preprocessed_line(&s, stream) == 0;
if (ok) {
ds_init(&s);
ok = ds_get_preprocessed_line(&s, stream) == 0;
if (ok) {
- parse_ofp_flow_mod_str(packets, cur, ds_cstr(&s),
OFPFC_ADD
);
+ parse_ofp_flow_mod_str(packets, cur, ds_cstr(&s),
command
);
}
ds_destroy(&s);
}
ds_destroy(&s);