it is possible to receive packets which are not tagged. ignore them rather than crash.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 19 Dec 2007 13:24:30 +0100
changeset 2287 363c7065ce0e
parent 2286 3704959cf153
child 2288 362c382bffcf
it is possible to receive packets which are not tagged. ignore them rather than crash.
src/contrib/delay-jitter-estimation.cc
--- a/src/contrib/delay-jitter-estimation.cc	Wed Dec 19 13:22:55 2007 +0100
+++ b/src/contrib/delay-jitter-estimation.cc	Wed Dec 19 13:24:30 2007 +0100
@@ -75,7 +75,10 @@
   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);