diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-12-22 16:36:38 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-12-22 16:36:38 -0800 |
commit | 2eaff6d4843f420ff63c1b7b42e86028fa162f80 (patch) | |
tree | 27fe0e92da25c6cbf1ee9ea4525980bd2a078089 | |
parent | a54c2b438c0abc574039055ecfc70dd829e2cade (diff) | |
download | infinitytier-2eaff6d4843f420ff63c1b7b42e86028fa162f80.tar.gz infinitytier-2eaff6d4843f420ff63c1b7b42e86028fa162f80.zip |
Fix to characteristcs in rules engine.
-rw-r--r-- | node/Network.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Network.cpp b/node/Network.cpp index 1f8e7ebf..e8b103ba 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -498,7 +498,7 @@ static _doZtFilterResult _doZtFilter( } } } - thisRuleMatches = (uint8_t)((cf | rules[rn].v.characteristics) != 0); + thisRuleMatches = (uint8_t)((cf & rules[rn].v.characteristics) != 0); FILTER_TRACE("%u %s %c (%.16llx | %.16llx)!=0 -> %u",rn,_rtn(rt),(((rules[rn].t & 0x80) != 0) ? '!' : '='),cf,rules[rn].v.characteristics,(unsigned int)thisRuleMatches); } break; case ZT_NETWORK_RULE_MATCH_FRAME_SIZE_RANGE: |