ofproto: Correctly compute length of flow stats in multipart flow stats.
authorBen Pfaff <blp@nicira.com>
Fri, 21 Jan 2011 22:49:01 +0000 (14:49 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 21 Jan 2011 22:49:46 +0000 (14:49 -0800)
commit1dfee98d87605bc52ed58738edf01e201b189615
tree7e64943e0b895a5133aaacae81897613b9d3c7aa
parenta80a9fbd061fe9023cd669d6fe0a4faea7e31af3
ofproto: Correctly compute length of flow stats in multipart flow stats.

In a flow table dump, the length of the first nx_flow_stats in the second
and subsequent OpenFlow messages was being miscalculated, because
append_nxstats_reply() changed the length of the message in such cases.
So we need to load the starting length after calling append_nxstats_reply()
instead of before.

Reported-by: Reid Price <reid@nicira.com>
Bug #4444.
ofproto/ofproto.c