diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-03-18 14:41:22 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-03-18 14:41:36 -0700 |
| commit | 02c5617b60e6dbd729c529629488bb7f812ca3d9 (patch) | |
| tree | 0f624250d17ce5673e521a67ef9eec382e58f744 /lib/ofp-parse.c | |
| parent | 0199c526f17c7dbed579436f716a1feae22e192a (diff) | |
| download | openvswitch-02c5617b60e6dbd729c529629488bb7f812ca3d9.tar.gz | |
ofp-parse: Generalize parse_ofp_add_flow_file() to parse_ofp_flow_mod_file().
An upcoming commit will want to pass a different command.
Diffstat (limited to 'lib/ofp-parse.c')
| -rw-r--r-- | lib/ofp-parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 1c69d880b..de7cd9c72 100644 --- 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 -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; @@ -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) { - 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); |
