On Wed, 13 Jun 2012 11:44:15 +0900
Isaku Yamahata <[email protected]> wrote:

>  def nxm_put(buf, offset, header, rule):
>      nxm = NXMatch(header)
> -    len = nxm.put_header(buf, offset)
> +    len_ = nxm.put_header(buf, offset)
>      mf = mf_from_nxm_header(nxm.header)
> -    return len + mf.put(buf, offset + len, rule)
> +    return len_ + mf.put(buf, offset + len, rule)

Looks like this part is broken.

-
>From 59b11d98b64ba481d3cb0c5418408a8ec45b2cba Mon Sep 17 00:00:00 2001
From: FUJITA Tomonori <[email protected]>
Date: Wed, 20 Jun 2012 07:08:07 +0900
Subject: [PATCH] Fix nxm_put()

Fix the regression of commit 3b3bcaa7591e3f11f328d82bee3800f407f14e3d.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/ofproto/nx_match.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py
index eddc4ac..3100eba 100644
--- a/ryu/ofproto/nx_match.py
+++ b/ryu/ofproto/nx_match.py
@@ -614,7 +614,7 @@ def nxm_put(buf, offset, header, rule):
     nxm = NXMatch(header)
     len_ = nxm.put_header(buf, offset)
     mf = mf_from_nxm_header(nxm.header)
-    return len_ + mf.put(buf, offset + len, rule)
+    return len_ + mf.put(buf, offset + len_, rule)
 
 
 def round_up(length):
-- 
1.7.4.4


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to