projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix handling of OFPP_ANY in OpenFlow 1.1 and later.
[openvswitch]
/
lib
/
ofp-print.c
diff --git
a/lib/ofp-print.c
b/lib/ofp-print.c
index a0f04dcb64634d734e06029a92149f553d56d692..1e35fba7937b05e21fefbcd146838463859bc4b4 100644
(file)
--- a/
lib/ofp-print.c
+++ b/
lib/ofp-print.c
@@
-765,7
+765,7
@@
ofp_print_flow_mod(struct ds *s, const struct ofp_header *oh, int verbosity)
if (fm.buffer_id != UINT32_MAX) {
ds_put_format(s, "buf:0x%"PRIx32" ", fm.buffer_id);
}
if (fm.buffer_id != UINT32_MAX) {
ds_put_format(s, "buf:0x%"PRIx32" ", fm.buffer_id);
}
- if (fm.out_port != OFPP_
NONE
) {
+ if (fm.out_port != OFPP_
ANY
) {
ds_put_format(s, "out_port:");
ofputil_format_port(fm.out_port, s);
ds_put_char(s, ' ');
ds_put_format(s, "out_port:");
ofputil_format_port(fm.out_port, s);
ds_put_char(s, ' ');
@@
-1003,7
+1003,7
@@
ofp_print_flow_stats_request(struct ds *string, const struct ofp_header *oh)
ds_put_format(string, " table=%"PRIu8, fsr.table_id);
}
ds_put_format(string, " table=%"PRIu8, fsr.table_id);
}
- if (fsr.out_port != OFPP_
NONE
) {
+ if (fsr.out_port != OFPP_
ANY
) {
ds_put_cstr(string, " out_port=");
ofputil_format_port(fsr.out_port, string);
}
ds_put_cstr(string, " out_port=");
ofputil_format_port(fsr.out_port, string);
}