summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/lib/packet/icmpv6.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/packet/icmpv6.py b/ryu/lib/packet/icmpv6.py
index 1e5eaea8..7608169b 100644
--- a/ryu/lib/packet/icmpv6.py
+++ b/ryu/lib/packet/icmpv6.py
@@ -363,7 +363,7 @@ class nd_router_advert(stringify.StringifyMixin):
if cls_ is not None:
option = cls_.parser(buf, offset)
else:
- option = buf[offset:offset + (length * 8 - 2)]
+ option = buf[offset:offset + (length * 8)]
options.append(option)
offset += len(option)
msg = cls(ch_l, res >> 6, rou_l, rea_t, ret_t, options)