diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-25 16:51:10 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-25 16:51:10 -0700 |
| commit | 7404eb46c4279b1e2ecce29aece14e15fbedbffd (patch) | |
| tree | ac2cc184f70e433c2f05c04bf25ef5fca8aff10e /node/NetworkConfig.hpp | |
| parent | eaf6d6c9384ce31d025ea5b82013de7064b0c047 (diff) | |
| download | infinitytier-7404eb46c4279b1e2ecce29aece14e15fbedbffd.tar.gz infinitytier-7404eb46c4279b1e2ecce29aece14e15fbedbffd.zip | |
Integration of Filter into inbound and outbound packet path.
Diffstat (limited to 'node/NetworkConfig.hpp')
| -rw-r--r-- | node/NetworkConfig.hpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index 5271c5ad..f2dab6d3 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -216,26 +216,6 @@ public: } /** - * @param etherType Ethernet frame type to check - * @return True if allowed on this network - */ - inline bool permitsEtherType(unsigned int etherType) const - { - unsigned int et = 0; - for(unsigned int i=0;i<ruleCount;++i) { - ZT_VirtualNetworkRuleType rt = (ZT_VirtualNetworkRuleType)(rules[i].t & 0x7f); - if (rt == ZT_NETWORK_RULE_MATCH_ETHERTYPE) { - et = rules[i].v.etherType; - } else if (rt == ZT_NETWORK_RULE_ACTION_ACCEPT) { - if ((!et)||(et == etherType)) - return true; - et = 0; - } - } - return false; - } - - /** * Write this network config to a dictionary for transport * * @param d Dictionary |
