mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
add tests and fixups
This commit is contained in:
parent
5f01608c61
commit
c6bce1a882
6 changed files with 319 additions and 2 deletions
|
@ -62,12 +62,17 @@ LeoMockChannel::TransmitStart (Ptr<const Packet> p,
|
|||
NS_LOG_ERROR ("unable to find satellite with address " << dst);
|
||||
return false;
|
||||
}
|
||||
NS_LOG_DEBUG ("BOOOOM " << srcDev->GetAddress () << " -> " << dst);
|
||||
return Deliver (p, srcDev, it->second, txTime);
|
||||
}
|
||||
else
|
||||
// space to ground delivers to everything within the beam
|
||||
{
|
||||
DeviceIndex::iterator it = m_groundDevices.find (dst);
|
||||
if (it == m_groundDevices.end ())
|
||||
{
|
||||
NS_LOG_ERROR ("unable to find satellite with address " << dst);
|
||||
return false;
|
||||
}
|
||||
for (DeviceIndex::iterator it = m_groundDevices.begin ();
|
||||
it != m_groundDevices.end ();
|
||||
it++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue