Take TRACE back out of Mac makefile, fix a few decode little things.

This commit is contained in:
Adam Ierymenko 2014-01-30 15:26:12 -08:00
parent 490e86dde3
commit 525ab3faa9
3 changed files with 10 additions and 10 deletions

View file

@ -67,7 +67,7 @@ Switch::~Switch()
void Switch::onRemotePacket(Demarc::Port localPort,const InetAddress &fromAddr,const Buffer<4096> &data)
{
try {
if (data.size() >= ZT_PROTO_MIN_FRAGMENT_LENGTH) {
if (data.size() > ZT_PROTO_MIN_FRAGMENT_LENGTH) {
if (data[ZT_PACKET_FRAGMENT_IDX_FRAGMENT_INDICATOR] == ZT_PACKET_FRAGMENT_INDICATOR)
_handleRemotePacketFragment(localPort,fromAddr,data);
else if (data.size() >= ZT_PROTO_MIN_PACKET_LENGTH)