summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCan Zhang <can@canx.me>2013-04-24 14:53:17 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-04-24 19:20:07 +0900
commit4ed1379fee1f4a43584291b46386aa84e028c2cf (patch)
tree7daf87d10e842e76e11870c6a54a0230fc478b0d
parent74310115d502276189c0b90eb0d5539d92f31580 (diff)
nx_match: support IPv4 mask
Signed-off-by: Can Zhang <can@canx.me> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/nx_match.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py
index a779338d..be65eb59 100644
--- a/ryu/ofproto/nx_match.py
+++ b/ryu/ofproto/nx_match.py
@@ -613,6 +613,7 @@ class MFIPSrc(MFField):
def __init__(self, header, value, mask=None):
super(MFIPSrc, self).__init__(header, MFIPSrc.pack_str)
self.value = value
+ self.mask = mask
@classmethod
def make(cls, header):
@@ -632,6 +633,7 @@ class MFIPDst(MFField):
def __init__(self, header, value, mask=None):
super(MFIPDst, self).__init__(header, MFIPDst.pack_str)
self.value = value
+ self.mask = mask
@classmethod
def make(cls, header):