From 27b7a524d48dcf285271dbef805efb66d09b1f28 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Thu, 30 Jul 2015 22:12:02 +0900 Subject: [PATCH] ospf: fix serialize() to work with packet.Packet() Signed-off-by: ISHIDA Wataru Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/ospf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/packet/ospf.py b/ryu/lib/packet/ospf.py index 4265717d..0cc20267 100644 --- a/ryu/lib/packet/ospf.py +++ b/ryu/lib/packet/ospf.py @@ -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,