summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-11 14:30:24 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-11 14:30:24 -0800
commitba9fcb31d06e31f4b31a114093aee93054eb931a (patch)
treedbc36d5a3a3f2442dc6dcb9e26500f5c0bf825b1 /node/Switch.cpp
parent78c0f0a443919d8f214486f188c6e83a8af15fef (diff)
parentb3e3d4cacca37a4850e4e1a91fb8c42a5b13cb26 (diff)
downloadinfinitytier-ba9fcb31d06e31f4b31a114093aee93054eb931a.tar.gz
infinitytier-ba9fcb31d06e31f4b31a114093aee93054eb931a.zip
Merge branch 'dev' into edge
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index a6575836..9ef8611a 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -42,7 +42,6 @@
#include "InetAddress.hpp"
#include "Topology.hpp"
#include "Peer.hpp"
-#include "AntiRecursion.hpp"
#include "SelfAwareness.hpp"
#include "Packet.hpp"
#include "Cluster.hpp"
@@ -124,15 +123,6 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c
if (to == network->mac())
return;
- /* Check anti-recursion module to ensure that this is not ZeroTier talking over its own links.
- * Note: even when we introduce a more purposeful binding of the main UDP port, this can
- * still happen because Windows likes to send broadcasts over interfaces that have little
- * to do with their intended target audience. :P */
- if (!RR->antiRec->checkEthernetFrame(data,len)) {
- TRACE("%.16llx: rejected recursively addressed ZeroTier packet by tail match (type %s, length: %u)",network->id(),etherTypeName(etherType),len);
- return;
- }
-
// Check to make sure this protocol is allowed on this network
if (!nconf->permitsEtherType(etherType)) {
TRACE("%.16llx: ignored tap: %s -> %s: ethertype %s not allowed on network %.16llx",network->id(),from.toString().c_str(),to.toString().c_str(),etherTypeName(etherType),(unsigned long long)network->id());