Increment offset in OFPFlowStats.parser()
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 <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
abd83137e1
commit
4bd7c5026c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user