mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Debug output fixes.
This commit is contained in:
parent
f0636ffd4a
commit
cb82193333
1 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@ static const void _dumpFilterTrace(const char *ruleName,uint8_t thisSetMatches,b
|
||||||
{
|
{
|
||||||
static volatile unsigned long cnt = 0;
|
static volatile unsigned long cnt = 0;
|
||||||
printf("%.6lu %c %s inbound=%d noRedirect=%d frameLen=%u etherType=%u" ZT_EOL_S,
|
printf("%.6lu %c %s inbound=%d noRedirect=%d frameLen=%u etherType=%u" ZT_EOL_S,
|
||||||
cnt,
|
cnt++,
|
||||||
((thisSetMatches) ? 'Y' : '.'),
|
((thisSetMatches) ? 'Y' : '.'),
|
||||||
ruleName,
|
ruleName,
|
||||||
(int)inbound,
|
(int)inbound,
|
||||||
|
@ -213,7 +213,7 @@ static int _doZtFilter(
|
||||||
// to self. We should also accept here instead of interpreting
|
// to self. We should also accept here instead of interpreting
|
||||||
// REDIRECT as DROP since we are the destination.
|
// REDIRECT as DROP since we are the destination.
|
||||||
#ifdef ZT_RULES_ENGINE_DEBUGGING
|
#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
|
#endif // ZT_RULES_ENGINE_DEBUGGING
|
||||||
return 2; // we should "super-accept" this packet since we are the TEE or REDIRECT destination
|
return 2; // we should "super-accept" this packet since we are the TEE or REDIRECT destination
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue