summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-03-30 08:49:37 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-04-01 17:29:14 +0900
commitf813ec4232e610df45519d0ae73f3f83852f99cc (patch)
treef170179735f739227a49ca6cc9e151272c4fb0cc
parentf5543f9e20d63667a3531dc0877cd73e6b8f5a32 (diff)
bgp: remove inappropriate assertion assuming only MPBGP (not BGP4)
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/protocols/bgp/messages.py3
1 files changed, 0 insertions, 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])