MULTICAST_FRAME TRACE improvements.

This commit is contained in:
Adam Ierymenko 2014-03-20 14:24:15 -07:00
parent 7a45ff460d
commit 97e6b38144

View file

@ -490,18 +490,15 @@ bool PacketDecoder::_doMULTICAST_FRAME(const RuntimeEnvironment *_r,const Shared
const unsigned int signatureLen = at<uint16_t>(ZT_PROTO_VERB_MULTICAST_FRAME_IDX_FRAME + frameLen); const unsigned int signatureLen = at<uint16_t>(ZT_PROTO_VERB_MULTICAST_FRAME_IDX_FRAME + frameLen);
const unsigned char *const signature = field(ZT_PROTO_VERB_MULTICAST_FRAME_IDX_FRAME + frameLen + 2,signatureLen); const unsigned char *const signature = field(ZT_PROTO_VERB_MULTICAST_FRAME_IDX_FRAME + frameLen + 2,signatureLen);
/* TRACE("MULTICAST_FRAME @%.16llx #%.16llx from %s<%s> via %s(%s) to %s [ %s, %d bytes, depth %d ]",
TRACE("MULTICAST_FRAME %d bytes guid#%.16llx from %s(%s) to %s on network %.16llx",(int)frameLen,(unsigned long long)guid,sourceMac.toString().c_str(),origin.toString().c_str(),dest.toString().c_str(),(unsigned long long)nwid); (unsigned long long)nwid,
TRACE(" received from upstream peer: %s(%s)",source().toString().c_str(),_remoteAddress.toString().c_str()); (unsigned long long)guid,
TRACE(" restrict prefix: %.8lx / %d",(unsigned long)prefix,(int)prefixBits); sourceMac.toString().c_str(),origin.toString().c_str(),
TRACE(" ethernet type: %.4x(%s)",etherType,Switch::etherTypeName(etherType)); source().toString().c_str(),_remoteAddress.toString().c_str(),
TRACE(" signature length: %d",(int)signatureLen); dest.toString().c_str(),
{ Switch::etherTypeName(etherType),
unsigned char h[64]; (int)frameLen,
SHA512::hash(h,frame,frameLen); (int)depth);
TRACE(" frame data SHA-512: %s",Utils::hex(h,64).c_str());
}
*/
SharedPtr<Network> network(_r->nc->network(nwid)); SharedPtr<Network> network(_r->nc->network(nwid));