diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-15 13:09:20 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-15 13:09:20 -0700 |
commit | 1c9ca73065975b137deb6770b4624886942c2605 (patch) | |
tree | 68877dfbf02796160ae53f3d2e591564afb9a252 /node/Switch.cpp | |
parent | 508519b62a9a7eae47c1000d56c85c645dae0b55 (diff) | |
download | infinitytier-1c9ca73065975b137deb6770b4624886942c2605.tar.gz infinitytier-1c9ca73065975b137deb6770b4624886942c2605.zip |
Fix some deadlock issues, move awareness of broadcast subscription into core, other bug fixes.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r-- | node/Switch.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 3710158d..6bc044c0 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -153,7 +153,7 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c return; } - //TRACE("%.16llx: MULTICAST %s -> %s %s %u",network->id(),from.toString().c_str(),mg.toString().c_str(),etherTypeName(etherType),len); + TRACE("%.16llx: MULTICAST %s -> %s %s %u",network->id(),from.toString().c_str(),mg.toString().c_str(),etherTypeName(etherType),len); RR->mc->send( ((!nconf->isPublic())&&(nconf->com())) ? &(nconf->com()) : (const CertificateOfMembership *)0, @@ -171,7 +171,7 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c } if (to[0] == MAC::firstOctetForNetwork(network->id())) { - // Destination is another ZeroTier peer + // Destination is another ZeroTier peer on the same network Address toZT(to.toAddress(network->id())); if (network->isAllowed(toZT)) { @@ -203,8 +203,10 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c outp.compress(); send(outp,true); } + + TRACE("%.16llx: UNICAST: %s -> %s etherType==%s(%.4x) vlanId==%u len==%u fromBridged==%d",network->id(),from.toString().c_str(),to.toString().c_str(),etherTypeName(etherType),etherType,vlanId,len,(int)fromBridged); } else { - TRACE("%.16llx: UNICAST: %s -> %s %s dropped, destination not a member of private network",network->id(),from.toString().c_str(),to.toString().c_str(),etherTypeName(etherType)); + TRACE("%.16llx: UNICAST: %s -> %s etherType==%s dropped, destination not a member of private network",network->id(),from.toString().c_str(),to.toString().c_str(),etherTypeName(etherType)); } return; |