Browse Source

TRACE NOP receipt.

Adam Ierymenko 11 years ago
parent
commit
17796aaed4
2 changed files with 2 additions and 1 deletions
  1. 1 1
      make-mac.mk
  2. 1 0
      node/PacketDecoder.cpp

+ 1 - 1
make-mac.mk

@@ -20,7 +20,7 @@ ifeq ($(ZT_AUTO_UPDATE),1)
 endif
 
 # Uncomment to dump trace and log info to stdout (useful for debug/test)
-#DEFS+=-DZT_TRACE -DZT_LOG_STDOUT 
+DEFS+=-DZT_TRACE -DZT_LOG_STDOUT 
 
 # Uncomment for a release optimized universal binary build
 CFLAGS=-arch i386 -arch x86_64 -Wall -O4 -fstack-protector -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)

+ 1 - 0
node/PacketDecoder.cpp

@@ -80,6 +80,7 @@ bool PacketDecoder::tryDecode(const RuntimeEnvironment *_r)
 
 		switch(verb()) {
 			case Packet::VERB_NOP:
+				TRACE("NOP from %s(%s)",source().toString().c_str(),_remoteAddress.toString().c_str());
 				peer->onReceive(_r,_localPort,_remoteAddress,hops(),packetId(),Packet::VERB_NOP,0,Packet::VERB_NOP,Utils::now());
 				return true;
 			case Packet::VERB_HELLO: