After reading the third portion of the header the offset needs
to be incremented as it is used to parse actions later on
in the function.

Signed-off-by: Simon Horman <[email protected]>
---
 ryu/ofproto/ofproto_v1_0_parser.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ryu/ofproto/ofproto_v1_0_parser.py 
b/ryu/ofproto/ofproto_v1_0_parser.py
index 6846665..5ee4e3d 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -397,6 +397,7 @@ class OFPFlowStats(object):
          flow_stats.packet_count,
          flow_stats.byte_conunt) = struct.unpack_from(
             ofproto_v1_0.OFP_FLOW_STATS_1_PACK_STR, buf, offset)
+        offset += ofproto_v1_0.OFP_FLOW_STATS_1_SIZE
 
         flow_stats.actions = []
         length = ofproto_v1_0.OFP_FLOW_STATS_SIZE
-- 
1.7.6.3


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to