From eca8acd974c187dbdc28a09ca5008fc706d6c7bd Mon Sep 17 00:00:00 2001 From: Brad Cowie Date: Wed, 15 Jul 2026 13:24:46 +1200 Subject: [PATCH] Fix comparison of masked flowmod matches in FakeOF --- clib/fakeoftable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clib/fakeoftable.py b/clib/fakeoftable.py index d07afade97..8b2c3b9230 100644 --- a/clib/fakeoftable.py +++ b/clib/fakeoftable.py @@ -954,7 +954,8 @@ def pkt_matches(self, pkt_dict): if key not in pkt_dict: return False val_bits = self.match_to_bits(key, pkt_dict[key]) - if val_bits != (val & self.match_masks[key]): + mask = self.match_masks[key] + if (val_bits & mask) != (val & mask): return False return True