of1.2: fix OFPPacketIn parser
We need two bytes padding right after the match. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
b389c933fb
commit
da26715d80
@ -240,7 +240,7 @@ class OFPPacketIn(MsgBase):
|
||||
|
||||
match_len = utils.round_up(msg.match.length, 8)
|
||||
msg.data = msg.buf[(ofproto_v1_2.OFP_PACKET_IN_SIZE -
|
||||
ofproto_v1_2.OFP_MATCH_SIZE + match_len):]
|
||||
ofproto_v1_2.OFP_MATCH_SIZE + match_len + 2):]
|
||||
|
||||
if msg.total_len < len(msg.data):
|
||||
# discard padding for 8-byte alignment of OFP packet
|
||||
|
Loading…
Reference in New Issue
Block a user