ofp-util: Fix port and queue stat counting for OpenFlow 1.3.
authorBen Pfaff <blp@nicira.com>
Wed, 17 Jul 2013 22:53:26 +0000 (15:53 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 26 Jul 2013 17:20:03 +0000 (10:20 -0700)
commitbe0c30df01b768f1b21e320668c081c618336f0f
tree3280138464ec0d12aeb970eb94711eec24dc845e
parent16c6b9216e8ccccb392b09d2f1bc9e1a0e1d935d
ofp-util: Fix port and queue stat counting for OpenFlow 1.3.

OpenFlow 1.0, 1.1, and 1.2 all have the same struct size for port and
queue stats.  OpenFlow 1.3 has larger structs, but the ofp-util code didn't
realize that.  This fixes the problem.

It appears that the only consequence of this problem would have been
printing the wrong count in ofp-print output.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c
tests/ofp-print.at