summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-09 20:54:00 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-09 20:54:00 -0700
commit068d311ecc7b52f1adaa894864afa54ef49a3e6e (patch)
treee62de1256cbc981f159c8b023ce1b6bbbc3f27cd /node/Switch.cpp
parent38200cc6a55c3b11502a78251c2bdf09960a2a03 (diff)
downloadinfinitytier-068d311ecc7b52f1adaa894864afa54ef49a3e6e.tar.gz
infinitytier-068d311ecc7b52f1adaa894864afa54ef49a3e6e.zip
TRACE compile fixes, other fixes, and it basically works! It says HELLO.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index a73c354e..caeb3e3a 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -92,7 +92,7 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c
* 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),data.size());
+ TRACE("%.16llx: rejected recursively addressed ZeroTier packet by tail match (type %s, length: %u)",network->id(),etherTypeName(etherType),len);
return;
}
@@ -149,11 +149,11 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c
// Check multicast/broadcast bandwidth quotas and reject if quota exceeded
if (!network->updateAndCheckMulticastBalance(mg,len)) {
- TRACE("%.16llx: didn't multicast %d bytes, quota exceeded for multicast group %s",network->id(),(int)data.size(),mg.toString().c_str());
+ TRACE("%.16llx: didn't multicast %u bytes, quota exceeded for multicast group %s",network->id(),len,mg.toString().c_str());
return;
}
- TRACE("%.16llx: MULTICAST %s -> %s %s %d",network->id(),from.toString().c_str(),mg.toString().c_str(),etherTypeName(etherType),(int)data.size());
+ //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,