ofp-print: Merge ofp_print_stats_{reply, request}()
authorSimon Horman <horms@verge.net.au>
Tue, 27 May 2014 09:05:37 +0000 (18:05 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 27 May 2014 16:41:13 +0000 (09:41 -0700)
commit5d40fc57966422659861c9d853abcf6a3a4b6bf4
tree62fd61df94aaf52fe09efef5b015572758e7bc38
parent930d5a45bd8493c0d4e1c9dd5482fe4dc6f9087d
ofp-print: Merge ofp_print_stats_{reply, request}()

Merge ofp_print_stats_reply() and ofp_print_stats_request()
into a single new function, ofp_print_stats().

For stats replies there should be no run-time change in behaviour.

For pre-OpenFlow1.3 stats requests there should also be
no run-time change in behaviour.

For OpenFlow1.3+ stats requests the more flag is now printed
as present. Previously ***unknown flags 0x0001*** was printed.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-print.c