diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-31 16:50:22 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-31 16:50:22 -0700 |
| commit | 74afef8eb1d96aec291c6dfeca31e69a2ad33d69 (patch) | |
| tree | 7b976206799fd9260e5f51d4a33fbd694a81e28c /node/Network.hpp | |
| parent | 54489a7f61a19b07eaa5a87d1df2ee30101f29ee (diff) | |
| download | infinitytier-74afef8eb1d96aec291c6dfeca31e69a2ad33d69.tar.gz infinitytier-74afef8eb1d96aec291c6dfeca31e69a2ad33d69.zip | |
Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics.
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index aa4b67f8..45a51bf2 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -82,11 +82,10 @@ public: * Apply filters to an outgoing packet * * This applies filters from our network config and, if that doesn't match, - * our capabilities in ascending order of capability ID. If there is a match - * certain actions may be taken such as pushing credentials to ztDest and - * sending a copy of the packet to a TEE or REDIRECT target. + * our capabilities in ascending order of capability ID. Additional actions + * such as TEE may be taken, and credentials may be pushed. * - * @param noRedirect If true, do not TEE or REDIRECT -- this is set for secondary filtrations done in multicast and bridge send paths + * @param noTee If true, do not TEE anything anywhere * @param ztSource Source ZeroTier address * @param ztDest Destination ZeroTier address * @param macSource Ethernet layer source address @@ -95,10 +94,10 @@ public: * @param frameLen Ethernet frame payload length * @param etherType 16-bit ethernet type ID * @param vlanId 16-bit VLAN ID - * @return True if packet should be sent to destination peer + * @return True if packet should be sent, false if dropped or redirected */ bool filterOutgoingPacket( - const bool noRedirect, + const bool noTee, const Address &ztSource, const Address &ztDest, const MAC &macSource, |
