From f1f400bcee04d92f76295f74f4a9ab344ece5725 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 19 Dec 2007 13:24:30 +0100 Subject: [PATCH] it is possible to receive packets which are not tagged. ignore them rather than crash. --- src/contrib/delay-jitter-estimation.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/contrib/delay-jitter-estimation.cc b/src/contrib/delay-jitter-estimation.cc index 3904b16cc..207855ee1 100644 --- a/src/contrib/delay-jitter-estimation.cc +++ b/src/contrib/delay-jitter-estimation.cc @@ -75,7 +75,10 @@ DelayJitterEstimation::RecordRx (Ptr 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);