summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-29 17:08:03 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-29 17:08:03 -0800
commit17796aaed464c1ea4ca0911f174fb71e41672b59 (patch)
tree40ac100bd54e0b1ad80cb6086ba3693825c34db6
parent2355fa973e2528f093f8e358a97e2d05fe5e81ee (diff)
downloadinfinitytier-17796aaed464c1ea4ca0911f174fb71e41672b59.tar.gz
infinitytier-17796aaed464c1ea4ca0911f174fb71e41672b59.zip
TRACE NOP receipt.
-rw-r--r--make-mac.mk2
-rw-r--r--node/PacketDecoder.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/make-mac.mk b/make-mac.mk
index f4eddb46..7760a186 100644
--- a/make-mac.mk
+++ b/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)
diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp
index 59a33923..5c333e8f 100644
--- a/node/PacketDecoder.cpp
+++ b/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: