mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
Fixup channel transmission to all nodes
This commit is contained in:
parent
f4233bc558
commit
1254c6060d
1 changed files with 4 additions and 20 deletions
|
@ -73,28 +73,12 @@ LeoMockChannel::TransmitStart (Ptr<const Packet> p,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dst == srcDev->GetBroadcast () || dst == srcDev->GetMulticast (Ipv4Address ())) // mcast group ignored
|
// TODO deliver only to devices in the same beam
|
||||||
{
|
|
||||||
for (DeviceIndex::iterator it = dests->begin (); it != dests->end(); it ++)
|
for (DeviceIndex::iterator it = dests->begin (); it != dests->end(); it ++)
|
||||||
{
|
{
|
||||||
Deliver (p, srcDev, it->second, txTime);
|
Deliver (p, srcDev, it->second, txTime);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DeviceIndex::iterator it = dests->find (dst);
|
|
||||||
if (it == dests->end ())
|
|
||||||
{
|
|
||||||
NS_LOG_ERROR ("unable to find destination interface: " << dst);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// TODO deliver only to devices in the same beam
|
|
||||||
return Deliver (p, srcDev, it->second, txTime);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t
|
int32_t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue