mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 12:26:11 +02:00
fix OFPVendor parser
msg.vendor should not be tuple. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
5089fdf1dc
commit
fcc066d9cb
@ -975,7 +975,7 @@ class OFPVendor(MsgBase):
|
||||
def parser(cls, datapath, version, msg_type, msg_len, xid, buf):
|
||||
msg = super(OFPVendor, cls).parser(datapath, version, msg_type,
|
||||
msg_len, xid, buf)
|
||||
msg.vendor = struct.unpack_from(
|
||||
(msg.vendor,) = struct.unpack_from(
|
||||
ofproto_v1_0.OFP_VENDOR_HEADER_PACK_STR, msg.buf,
|
||||
ofproto_v1_0.OFP_HEADER_SIZE)
|
||||
msg.data = msg.buf[ofproto_v1_0.OFP_VENDOR_HEADER_SIZE:]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user