nx_match: support IPv4 mask

Signed-off-by: Can Zhang <can@canx.me>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Can Zhang 2013-04-24 14:53:17 +08:00 committed by FUJITA Tomonori
parent 74310115d5
commit 4ed1379fee

View File

@ -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):