diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-17 10:01:46 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-17 10:01:46 -0400 |
commit | 557cc359b30aacff372f1b92a8f0f621fcd9c50f (patch) | |
tree | 915470b3308bb030fe921bed34ac0fd7c5c96722 /node/Filter.hpp | |
parent | 102b0865cb4a4c2d17dea7ba4e9717a7a6a6049f (diff) | |
download | infinitytier-557cc359b30aacff372f1b92a8f0f621fcd9c50f.tar.gz infinitytier-557cc359b30aacff372f1b92a8f0f621fcd9c50f.zip |
More filter work.
Diffstat (limited to 'node/Filter.hpp')
-rw-r--r-- | node/Filter.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/node/Filter.hpp b/node/Filter.hpp index 0af52864..8b86b48f 100644 --- a/node/Filter.hpp +++ b/node/Filter.hpp @@ -139,6 +139,11 @@ public: static const char *const UNKNOWN_NAME; /** + * An empty range as a more idiomatic way of specifying a wildcard match + */ + static const Range<unsigned int> ANY; + + /** * A filter rule * * This behaves as an immutable value object. @@ -222,10 +227,9 @@ public: */ enum Action { - ACTION_DENY = 1, - ACTION_ALLOW = 2, - ACTION_LOG = 3, - ACTION_UNPARSEABLE = 4 + ACTION_DENY = 0, + ACTION_ALLOW = 1, + ACTION_UNPARSEABLE = 2 }; /** @@ -329,10 +333,6 @@ public: /** * Match against an Ethernet frame * - * Note that ACTION_LOG rules do not terminate rule evaluation and - * ACTION_LOG is never returned here as a result. It's primarily for - * debugging and rule testing. - * * @param _r Runtime environment * @param etherType Ethernet frame type * @param frame Ethernet frame data |