mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-07-31 03:00:07 +02:00
Fix ground station allocator and trace mac drops
This commit is contained in:
parent
8d5cbfe8fe
commit
998b7fe2f2
15 changed files with 222 additions and 80 deletions
|
@ -79,11 +79,16 @@ LeoMockChannel::TransmitStart (Ptr<const Packet> p,
|
|||
return false;
|
||||
}
|
||||
|
||||
// make sure to return false if packet has been delivered to *no* device
|
||||
bool result = false;
|
||||
for (DeviceIndex::iterator it = dests->begin (); it != dests->end(); it ++)
|
||||
{
|
||||
Deliver (p, srcDev, it->second, txTime);
|
||||
if (Deliver (p, srcDev, it->second, txTime))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return result;
|
||||
}
|
||||
|
||||
int32_t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue