mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-07-31 03:00:07 +02:00
Fix address generation in tests
This commit is contained in:
parent
42f5bac245
commit
4f41cb04af
5 changed files with 143 additions and 189 deletions
|
@ -62,6 +62,11 @@ IslMockChannel::TransmitStart (
|
|||
NS_LOG_FUNCTION (this << p << srcId << destAddr << txTime);
|
||||
NS_LOG_LOGIC ("UID is " << p->GetUid () << ")");
|
||||
|
||||
if (srcId >= GetNDevices ())
|
||||
{
|
||||
NS_LOG_ERROR ("Source device unknown");
|
||||
return false;
|
||||
}
|
||||
Ptr<MockNetDevice> src = DynamicCast<MockNetDevice> (GetDevice (srcId));
|
||||
Ptr<MockNetDevice> dst = DynamicCast<MockNetDevice> (GetDevice (destAddr));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue