Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/services/vrrp/monitor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/services/vrrp/monitor.py b/ryu/services/vrrp/monitor.py
index f614bda..cf6d6f1 100644
--- a/ryu/services/vrrp/monitor.py
+++ b/ryu/services/vrrp/monitor.py
@@ -166,9 +166,9 @@ class VRRPInterfaceMonitor(app_manager.RyuApp):
         for proto in packet_.protocols:
             if proto == may_vrrp:
                 break
-            offset += proto.length
+            offset += len(proto)
         if not may_vrrp.checksum_ok(
-                may_ip, packet_.data[offset:offset + may_vrrp.length]):
+                may_ip, packet_.data[offset:offset + len(may_vrrp)]):
             self.logger.debug('bad checksum')
             return
         if may_vrrp.vrid != self.config.vrid:
-- 
1.8.1.5


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to