LogPrint(eLogDebug,"TunnelMessage: Out-of-sequence fragment ",(int)msg.nextFragmentNum," of message ",msgID," found");
{
LogPrint(eLogDebug,"TunnelMessage: Out-of-sequence fragment ",(int)it->second.fragmentNum," of message ",msgID," found");
size_tsize=it->second.data->GetLength();
size_tsize=it->second.data->GetLength();
if(msg.data->len+size>msg.data->maxLen)
if(msg.data->len+size>msg.data->maxLen)
{
{
@ -235,9 +234,6 @@ namespace tunnel
m_OutOfSequenceFragments.erase(it);
m_OutOfSequenceFragments.erase(it);
returntrue;
returntrue;
}
}
else
LogPrint(eLogError,"Tunnel message: next fragment ",(int)it->second.fragmentNum," of message ",msgID," mismatch. ",(int)msg.nextFragmentNum," expected");
}
returnfalse;
returnfalse;
}
}
@ -276,5 +272,18 @@ namespace tunnel
LogPrint(eLogError,"TunnelMessage: Unknown delivery type ",(int)msg.deliveryType);
LogPrint(eLogError,"TunnelMessage: Unknown delivery type ",(int)msg.deliveryType);