summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-29 16:19:26 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-29 16:19:26 -0700
commitcb8219333396a1ec72dc96445262440bc5e2b6ec (patch)
tree3d0633c102809702da48ccf2b77578d75d4c730c /node
parentf0636ffd4a86336f00bbf77a3e303def6261b518 (diff)
downloadinfinitytier-cb8219333396a1ec72dc96445262440bc5e2b6ec.tar.gz
infinitytier-cb8219333396a1ec72dc96445262440bc5e2b6ec.zip
Debug output fixes.
Diffstat (limited to 'node')
-rw-r--r--node/Network.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/Network.cpp b/node/Network.cpp
index fa8cad80..ac583b84 100644
--- a/node/Network.cpp
+++ b/node/Network.cpp
@@ -79,7 +79,7 @@ static const void _dumpFilterTrace(const char *ruleName,uint8_t thisSetMatches,b
{
static volatile unsigned long cnt = 0;
printf("%.6lu %c %s inbound=%d noRedirect=%d frameLen=%u etherType=%u" ZT_EOL_S,
- cnt,
+ cnt++,
((thisSetMatches) ? 'Y' : '.'),
ruleName,
(int)inbound,
@@ -88,8 +88,8 @@ static const void _dumpFilterTrace(const char *ruleName,uint8_t thisSetMatches,b
etherType
);
for(std::vector<std::string>::const_iterator m(dlog.begin());m!=dlog.end();++m)
- printf(" | %s" ZT_EOL_S,m->c_str());
- printf(" + %c %s->%s %.2x:%.2x:%.2x:%.2x:%.2x:%.2x->%.2x:%.2x:%.2x:%.2x:%.2x:%.2x" ZT_EOL_S,
+ printf(" | %s" ZT_EOL_S,m->c_str());
+ printf(" + %c %s->%s %.2x:%.2x:%.2x:%.2x:%.2x:%.2x->%.2x:%.2x:%.2x:%.2x:%.2x:%.2x" ZT_EOL_S,
((thisSetMatches) ? 'Y' : '.'),
ztSource.toString().c_str(),
ztDest.toString().c_str(),
@@ -213,7 +213,7 @@ static int _doZtFilter(
// to self. We should also accept here instead of interpreting
// REDIRECT as DROP since we are the destination.
#ifdef ZT_RULES_ENGINE_DEBUGGING
- _dumpFilterTrace(_rtn(rt),thisSetMatches,noRedirect,inbound,ztSource,ztDest,macSource,macDest,dlog,frameLen,etherType,"ignored since we are the destination");
+ _dumpFilterTrace(_rtn(rt),thisSetMatches,noRedirect,inbound,ztSource,ztDest,macSource,macDest,dlog,frameLen,etherType,"TEE/REDIRECT resulted in 'super-accept' since we are destination");
#endif // ZT_RULES_ENGINE_DEBUGGING
return 2; // we should "super-accept" this packet since we are the TEE or REDIRECT destination
} else {