mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-07-31 03:00:07 +02:00
Use propagation loss
This commit is contained in:
parent
9fdd70166c
commit
582d6c58d0
6 changed files with 14 additions and 18 deletions
|
@ -67,14 +67,13 @@ IslMockChannel::TransmitStart (
|
|||
|
||||
if (dst == nullptr)
|
||||
{
|
||||
if (src->IsBroadcast () || src->IsMulticast ())
|
||||
if (Mac48Address::ConvertFrom (destAddr).IsBroadcast () || Mac48Address::ConvertFrom (destAddr).IsBroadcast ())
|
||||
// try to deliver to every node in LOS
|
||||
{
|
||||
for (size_t i = 0; i < GetNDevices (); i ++)
|
||||
{
|
||||
if (i == srcId) continue;
|
||||
dst = DynamicCast<MockNetDevice> (GetDevice (i));
|
||||
// TODO check LOS using mobility model
|
||||
Deliver (p, src, dst, txTime);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue