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

@ -25,10 +25,9 @@ LeoHelper::Install (NodeContainer &satellites, NodeContainer &gateways, NodeCont
utNet = m_utChannelHelper.Install (satellites, terminals);
// Install internet stack on nodes
InternetStackHelper stack;
stack.Install (satellites);
stack.Install (gateways);
stack.Install (terminals);
m_stackHelper.Install (satellites);
m_stackHelper.Install (gateways);
m_stackHelper.Install (terminals);
// Make all networks addressable
Ipv6AddressHelper address;
@ -201,4 +200,16 @@ LeoHelper::EnableAsciiInternal (
m_utChannelHelper.EnableAsciiInternal (stream, prefix, nd, explicitFilename);
}
void
LeoHelper::SetRoutingHelper (const Ipv4RoutingHelper &routing)
{
m_stackHelper.SetRoutingHelper (routing);
}
void
LeoHelper::SetRoutingHelper (const Ipv6RoutingHelper &routing)
{
m_stackHelper.SetRoutingHelper (routing);
}
} /* namespace ns3 */