ospf: fix serialize() to work with packet.Packet()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
65205dcdb0
commit
27b7a524d4
@ -688,7 +688,7 @@ class OSPFMessage(packet_base.PacketBase, _TypeDisp):
|
||||
except:
|
||||
return None, None, buf
|
||||
|
||||
def serialize(self):
|
||||
def serialize(self, payload=None, prev=None):
|
||||
tail = self.serialize_tail()
|
||||
self.length = self._HDR_LEN + len(tail)
|
||||
head = bytearray(struct.pack(self._HDR_PACK_STR, self.version,
|
||||
|
Loading…
Reference in New Issue
Block a user