From f813ec4232e610df45519d0ae73f3f83852f99cc Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 30 Mar 2014 08:49:37 +0000 Subject: bgp: remove inappropriate assertion assuming only MPBGP (not BGP4) Signed-off-by: ISHIDA Wataru Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/protocols/bgp/messages.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ryu/services/protocols/bgp/protocols/bgp/messages.py b/ryu/services/protocols/bgp/protocols/bgp/messages.py index db4f8403..44690d9f 100644 --- a/ryu/services/protocols/bgp/protocols/bgp/messages.py +++ b/ryu/services/protocols/bgp/protocols/bgp/messages.py @@ -462,9 +462,6 @@ class Update(BgpMessage): idx += plen recv_len += plen - # Check if length of received bytes is valid. - if (recv_len + Update.MIN_LENGTH) < total_msg_len: - raise MalformedAttrList() if d[Update.WITHDRAW_NLRI]: withdraw_list = nlri.parse(d[Update.WITHDRAW_NLRI]) -- cgit v1.2.3