mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-09 06:16:10 +02:00
add missing 'length' field of OFPPort when decoding
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
11659aeb09
commit
c4ddf50b68
@ -1390,7 +1390,9 @@ class OFPPort(collections.namedtuple('OFPPort', (
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
port = struct.unpack_from(ofproto_v1_3.OFP_PORT_PACK_STR, buf, offset)
|
||||
return cls(*port)
|
||||
ofpport = cls(*port)
|
||||
ofpport.length = ofproto_v1_3.OFP_PORT_SIZE
|
||||
return ofpport
|
||||
|
||||
|
||||
@_register_parser
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user