--- a/src/lte/test/lte-test-entities.cc Wed Feb 08 16:17:11 2012 +0100
+++ b/src/lte/test/lte-test-entities.cc Wed Feb 08 16:21:05 2012 +0100
@@ -169,6 +169,7 @@
LteTestRrc::Start ()
{
NS_LOG_FUNCTION (this);
+ NS_ASSERT_MSG (m_arrivalTime != 0, "Arrival time must be different from 0");
// Stats
m_txPdus++;
@@ -351,7 +352,6 @@
LteTestMac::~LteTestMac ()
{
NS_LOG_FUNCTION (this);
- m_device = 0;
}
void
@@ -363,6 +363,8 @@
// delete m_schedSapUser;
// delete m_cschedSapUser;
// delete m_enbPhySapUser;
+
+ m_device = 0;
}
void
@@ -569,6 +571,8 @@
bool
LteTestMac::Receive (Ptr<NetDevice> nd, Ptr<const Packet> p, uint16_t protocol, const Address& addr)
{
+ NS_LOG_FUNCTION (this << addr << protocol << p->GetSize ());
+
m_rxPdus++;
m_rxBytes += p->GetSize ();