diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-11-22 11:20:19 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-12-10 14:57:34 +0900 |
commit | 197a6c49a68f55b445b4c31316eb022e30fee300 (patch) | |
tree | 5064d94c2cb5c3a16a3426c41d4108d05d14a775 | |
parent | 17acdbb6100d8a2335c06b56687645bfd78ec66f (diff) |
packet/bgp: Support multiple BGP messages in a packet
This patch fixes to BGPMessage.parser() to return the reference to
its own class and to support multiple BGP messages in a single packet.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/packet/bgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 38787965..bec13b7f 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3600,7 +3600,7 @@ class BGPMessage(packet_base.PacketBase, _TypeDisp): subcls = cls._lookup_type(type_) kwargs = subcls.parser(binmsg) return subcls(marker=marker, len_=len_, type_=type_, - **kwargs), None, rest + **kwargs), cls, rest def serialize(self, payload=None, prev=None): # fixup |