Add a way to set routing helper

This commit is contained in:
Tim Schubert 2020-07-18 13:43:51 +02:00
parent 7ba1d66e8c
commit a55177cd67
3 changed files with 25 additions and 7 deletions

View file

@ -6,9 +6,10 @@
#include "ns3/applications-module.h"
#include "ns3/node-container.h"
#include "ns3/core-module.h"
#include "ns3/aodv-module.h"
#include "ns3/test.h"
#include "ns3/leo-module.h"
#include "ns3/test.h"
using namespace ns3;
@ -54,6 +55,7 @@ LeoTestCase1::DoRun (void)
LeoHelper leo;
leo.SetDeviceAttribute ("DataRate", StringValue ("10Mbps"));
leo.SetChannelAttribute ("PropagationDelay", StringValue ("ns3::ConstantSpeedPropagationDelayModel"));
leo.SetRoutingHelper (AodvHelper ());
NetDeviceContainer allDevices = leo.Install (satellites, gateways, terminals);
@ -61,8 +63,6 @@ LeoTestCase1::DoRun (void)
UdpEchoServerHelper echoServer (9);
ApplicationContainer serverApps = echoServer.Install (terminals);
// TODO routing
// install a client on each of the terminals
ApplicationContainer clientApps;
for (uint32_t i = 1; i < terminals.GetN (); i++)