mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 01:53:58 +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
|
@ -44,6 +44,12 @@ LeoMockChannel::TransmitStart (Ptr<const Packet> p,
|
|||
NS_LOG_FUNCTION (this << p << devId << dst << txTime);
|
||||
|
||||
// Find devices joined to channel
|
||||
if (devId >= GetNDevices ())
|
||||
{
|
||||
NS_LOG_ERROR ("Source device unknown");
|
||||
return false;
|
||||
}
|
||||
|
||||
Ptr<MockNetDevice> srcDev = DynamicCast<MockNetDevice> (GetDevice (devId));
|
||||
if (srcDev == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue