This commit is contained in:
Tim Schubert 2020-08-11 11:43:44 +02:00
parent 7293dbbad1
commit 9f3318a96e
3 changed files with 5 additions and 4 deletions

View file

@ -13,6 +13,7 @@
#include "../model/leo-mock-net-device.h"
#include "../model/leo-starlink-constants.h"
#include "../model/leo-telesat-constants.h"
#include "../model/leo-propagation-loss-model.h"
namespace ns3
{
@ -330,7 +331,7 @@ LeoChannelHelper::Install (std::vector<Ptr<Node> > &satellites, std::vector<Ptr<
NS_LOG_FUNCTION (this);
Ptr<LeoMockChannel> channel = m_channelFactory.Create<LeoMockChannel> ();
channel->SetPropagationLoss (m_propagationLossFactory.Create ());
channel->SetPropagationLoss (m_propagationLossFactory.Create<LeoPropagationLossModel> ());
NetDeviceContainer container;

View file

@ -759,10 +759,10 @@ MockNetDevice::SupportsSendFrom (void) const
}
void
MockNetDevice::DoMpiReceive (Ptr<Packet> p, Ptr<MockNetDevice> senderDevice)
MockNetDevice::DoMpiReceive (Ptr<Packet> p, Ptr<MockNetDevice> senderDevice, double txPower)
{
NS_LOG_FUNCTION (this << p);
Receive (p, senderDevice);
Receive (p, senderDevice, txPower);
}
Address

View file

@ -203,7 +203,7 @@ protected:
*
* \param p Packet received
*/
void DoMpiReceive (Ptr<Packet> p, Ptr<MockNetDevice> sender);
void DoMpiReceive (Ptr<Packet> p, Ptr<MockNetDevice> sender, double txPower);
virtual void DoInitialize (void);
virtual void NotifyNewAggregate (void);