diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-03 14:12:38 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-03 14:12:38 -0700 |
| commit | 67cb03742e09f7ad83c2edd80e0a8ffbfcfa6285 (patch) | |
| tree | 9fd2131e5db302d892eb6e0b5680dd8d2be9cdf3 /node/Filter.cpp | |
| parent | 91940cbcf52c6b09f343e365632b8a1701732099 (diff) | |
| download | infinitytier-67cb03742e09f7ad83c2edd80e0a8ffbfcfa6285.tar.gz infinitytier-67cb03742e09f7ad83c2edd80e0a8ffbfcfa6285.zip | |
Add tag rules and split out rule serialize/deserialize so the code can be reused.
Diffstat (limited to 'node/Filter.cpp')
| -rw-r--r-- | node/Filter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Filter.cpp b/node/Filter.cpp index a4de7201..d86d1a14 100644 --- a/node/Filter.cpp +++ b/node/Filter.cpp @@ -243,6 +243,11 @@ bool Filter::run( case ZT_NETWORK_RULE_MATCH_FRAME_SIZE_RANGE: thisRuleMatches = (uint8_t)((frameLen >= (unsigned int)rules[rn].v.frameSize[0])&&(frameLen <= (unsigned int)rules[rn].v.frameSize[1])); break; + case ZT_NETWORK_RULE_MATCH_TAG_VALUE_RANGE: + break; + case ZT_NETWORK_RULE_MATCH_TAG_VALUE_BITS_ALL: + case ZT_NETWORK_RULE_MATCH_TAG_VALUE_BITS_ANY: + break; } // thisSetMatches remains true if the current rule matched... or does NOT match if not bit (0x80) is 1 |
