it is possible to receive packets which are not tagged. ignore them rather than crash.

This commit is contained in:
Mathieu Lacage
2007-12-19 13:24:30 +01:00
parent a6e289c8ef
commit f1f400bcee

View File

@@ -75,7 +75,10 @@ DelayJitterEstimation::RecordRx (Ptr<const Packet> packet)
TimestampTag tag;
bool found;
found = packet->PeekTag (tag);
NS_ASSERT (found);
if (!found)
{
return;
}
tag.GetTxTime ();
Time delta = (Simulator::Now () - m_previousRx) - (tag.GetTxTime () - m_previousRxTx);