Hi Guys,
Wildcards for nx match are not correctly set. This patch fixes the wildcards
for dl_src and dl_dst.
---
ryu/ofproto/nx_match.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py
index c9f2834..487ab5a 100644
--- a/ryu/ofproto/nx_match.py
+++ b/ryu/ofproto/nx_match.py
@@ -310,10 +310,10 @@ class ClsRule(object):
if not self.wc.wildcards & FWW_IN_PORT:
wildcards &= ~ofproto.OFPFW_IN_PORT
- if self.flow.dl_src != mac.DONTCARE:
+ if self.flow.dl_src != mac.DONTCARE or self.wc.dl_src_mask:
wildcards &= ~ofproto.OFPFW_DL_SRC
- if self.wc.dl_dst_mask:
+ if self.flow.dl_dst != mac.DONTCARE or self.wc.dl_dst_mask:
wildcards &= ~ofproto.OFPFW_DL_DST
if not self.wc.wildcards & FWW_DL_TYPE:
--
1.7.9.5
------------------------------------------------------------------------------
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