mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 10:31:43 +02:00
Bugfixes and performance optimizations
This commit is contained in:
parent
0f49ceb4aa
commit
dd55b495c4
7 changed files with 19 additions and 17 deletions
|
@ -50,7 +50,7 @@ LeoMockChannel::TransmitStart (Ptr<const Packet> p,
|
|||
return false;
|
||||
}
|
||||
|
||||
Ptr<MockNetDevice> srcDev = DynamicCast<MockNetDevice> (GetDevice (devId));
|
||||
Ptr<MockNetDevice> srcDev = StaticCast<MockNetDevice> (GetDevice (devId));
|
||||
if (srcDev == 0)
|
||||
{
|
||||
NS_LOG_ERROR ("Source device unknown");
|
||||
|
@ -89,7 +89,7 @@ LeoMockChannel::TransmitStart (Ptr<const Packet> p,
|
|||
int32_t
|
||||
LeoMockChannel::Attach (Ptr<MockNetDevice> device)
|
||||
{
|
||||
Ptr<LeoMockNetDevice> leodev = DynamicCast<LeoMockNetDevice> (device);
|
||||
Ptr<LeoMockNetDevice> leodev = StaticCast<LeoMockNetDevice> (device);
|
||||
|
||||
// Add to index
|
||||
switch (leodev->GetDeviceType ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue