@ -317,7 +317,7 @@ class Packet:
|
||||
if not (0 <= tlv_type < len(TLV.tlv_classes())):
|
||||
raise ValueError(f"TLV type is not supported: {tlv_type}")
|
||||
pkt.body = TLV.tlv_classes()[tlv_type]()
|
||||
pkt.body.unmarshal(data[4:4+pkt.body_length])
|
||||
pkt.body.unmarshal(data[4:4 + pkt.body_length])
|
||||
|
||||
pkt.validate_data()
|
||||
|
||||
|
Reference in New Issue
Block a user