From b46908136057e5819477192786961b7696bf1bc7 Mon Sep 17 00:00:00 2001 From: yuanchao Date: Tue, 16 Jun 2026 11:16:16 +0800 Subject: [PATCH] Fix: the issue with the first path matching error --- agent/src/common/matched_field.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/src/common/matched_field.rs b/agent/src/common/matched_field.rs index a36ee2f112c..50cdebcdab1 100644 --- a/agent/src/common/matched_field.rs +++ b/agent/src/common/matched_field.rs @@ -223,13 +223,13 @@ impl MatchedFieldN { for b in bits { let b = *b; if b < 8 * N { - self.src_ip[b >> 3] = 1 << (b & 7); + self.src_ip[b >> 3] |= 1 << (b & 7); } else if b < 8 * 2 * N { let b = b - 8 * N; - self.dst_ip[b >> 3] = 1 << (b & 7); + self.dst_ip[b >> 3] |= 1 << (b & 7); } else if b < 8 * (2 * N + 10) { let b = b - 8 * 2 * N; - self.others[b >> 3] = 1 << (b & 7); + self.others[b >> 3] |= 1 << (b & 7); } else { panic!("bits({:?}) out of bounds", bits) }