We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a37c4 commit 68ae3c5Copy full SHA for 68ae3c5
1 file changed
agent/src/common/matched_field.rs
@@ -223,13 +223,13 @@ impl<const N: usize> MatchedFieldN<N> {
223
for b in bits {
224
let b = *b;
225
if b < 8 * N {
226
- self.src_ip[b >> 3] = 1 << (b & 7);
+ self.src_ip[b >> 3] |= 1 << (b & 7);
227
} else if b < 8 * 2 * N {
228
let b = b - 8 * N;
229
- self.dst_ip[b >> 3] = 1 << (b & 7);
+ self.dst_ip[b >> 3] |= 1 << (b & 7);
230
} else if b < 8 * (2 * N + 10) {
231
let b = b - 8 * 2 * N;
232
- self.others[b >> 3] = 1 << (b & 7);
+ self.others[b >> 3] |= 1 << (b & 7);
233
} else {
234
panic!("bits({:?}) out of bounds", bits)
235
}
0 commit comments