diff --git a/node/Network.cpp b/node/Network.cpp index e13b32d53..1f49c651c 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -114,14 +114,14 @@ static _doZtFilterResult _doZtFilter( // uncomment for easier debugging fprintf // if (!ztDest) { return DOZTFILTER_ACCEPT; } #ifdef ZT_TRACE - char buf[40], buf2[40]; - fprintf(stderr, "\nsrc %s dest %s inbound: %d ethertype %u", ztSource.toString(buf), ztDest.toString(buf2), inbound, etherType); + //char buf[40], buf2[40]; + //fprintf(stderr, "\nsrc %s dest %s inbound: %d ethertype %u", ztSource.toString(buf), ztDest.toString(buf2), inbound, etherType); #endif for(unsigned int rn=0;rnid() == rules[rn].v.tag.id)) { const Tag *const remoteTag = ((membership) ? membership->getTag(nconf,rules[rn].v.tag.id) : (const Tag *)0); #ifdef ZT_TRACE - fprintf(stderr, "\tlocal tag [%u: %u] remote tag [%u: %u] match [%u]", + /*fprintf(stderr, "\tlocal tag [%u: %u] remote tag [%u: %u] match [%u]", !!localTag ? localTag->id() : 0, !!localTag ? localTag->value() : 0, !!remoteTag ? remoteTag->id() : 0, !!remoteTag ? remoteTag->value() : 0, - thisRuleMatches); + thisRuleMatches);*/ #endif if (remoteTag) { const uint32_t ltv = localTag->value(); @@ -501,7 +501,7 @@ static _doZtFilterResult _doZtFilter( if ((inbound)&&(!superAccept)) { thisRuleMatches = hardNo; #ifdef ZT_TRACE - fprintf(stderr, "\tinbound "); + //fprintf(stderr, "\tinbound "); #endif } else { // Outbound side is not strict since if we have to match both tags and @@ -512,7 +512,7 @@ static _doZtFilterResult _doZtFilter( skipDrop = 1; thisRuleMatches = hardYes; #ifdef ZT_TRACE - fprintf(stderr, "\toutbound "); + //fprintf(stderr, "\toutbound "); #endif } } @@ -524,13 +524,13 @@ static _doZtFilterResult _doZtFilter( case ZT_NETWORK_RULE_MATCH_TAG_RECEIVER: { const Tag *const localTag = std::lower_bound(&(nconf.tags[0]),&(nconf.tags[nconf.tagCount]),rules[rn].v.tag.id,Tag::IdComparePredicate()); #ifdef ZT_TRACE - const Tag *const remoteTag = ((membership) ? membership->getTag(nconf,rules[rn].v.tag.id) : (const Tag *)0); + /*const Tag *const remoteTag = ((membership) ? membership->getTag(nconf,rules[rn].v.tag.id) : (const Tag *)0); fprintf(stderr, "\tlocal tag [%u: %u] remote tag [%u: %u] match [%u]", !!localTag ? localTag->id() : 0, !!localTag ? localTag->value() : 0, !!remoteTag ? remoteTag->id() : 0, !!remoteTag ? remoteTag->value() : 0, - thisRuleMatches); + thisRuleMatches);*/ #endif if (superAccept) { skipDrop = 1;