diff options
author | Ben Pfaff <blp@nicira.com> | 2011-02-24 16:58:40 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-02-24 17:13:30 -0800 |
commit | 54ae6fa8f1ae7401652d282609848605fc283104 (patch) | |
tree | 4249229cb9dc7b533b36624b2461da2a3b9626f1 /lib/ofp-print.c | |
parent | 7006c033dce957da321ba8003696b99db5ca7782 (diff) |
ofp-print: Don't print priority for flow stats requests.
A flow stats or aggregate stats request does not have a priority, but we
were printing one anyway.
Reported-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'lib/ofp-print.c')
-rw-r--r-- | lib/ofp-print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c index bf9bf82e..d4f33daa 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1074,6 +1074,10 @@ ofp_print_flow_stats_request(struct ds *string, const struct ofp_header *oh) ofp_print_port_name(string, fsr.out_port); } + /* A flow stats request doesn't include a priority, but cls_rule_format() + * will print one unless it is OFP_DEFAULT_PRIORITY. */ + fsr.match.priority = OFP_DEFAULT_PRIORITY; + ds_put_char(string, ' '); cls_rule_format(&fsr.match, string); } |