mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-10 19:11:41 +02:00
Bugfixes and performance optimizations
This commit is contained in:
parent
0f49ceb4aa
commit
dd55b495c4
7 changed files with 19 additions and 17 deletions
|
@ -67,8 +67,8 @@ IslMockChannel::TransmitStart (
|
|||
NS_LOG_ERROR ("Source device unknown");
|
||||
return false;
|
||||
}
|
||||
Ptr<MockNetDevice> src = DynamicCast<MockNetDevice> (GetDevice (srcId));
|
||||
Ptr<MockNetDevice> dst = DynamicCast<MockNetDevice> (GetDevice (destAddr));
|
||||
Ptr<MockNetDevice> src = StaticCast<MockNetDevice> (GetDevice (srcId));
|
||||
Ptr<MockNetDevice> dst = StaticCast<MockNetDevice> (GetDevice (destAddr));
|
||||
|
||||
if (dst == nullptr)
|
||||
{
|
||||
|
@ -78,7 +78,7 @@ IslMockChannel::TransmitStart (
|
|||
for (size_t i = 0; i < GetNDevices (); i ++)
|
||||
{
|
||||
if (i == srcId) continue;
|
||||
dst = DynamicCast<MockNetDevice> (GetDevice (i));
|
||||
dst = StaticCast<MockNetDevice> (GetDevice (i));
|
||||
Deliver (p, src, dst, txTime);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue