mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 10:31:43 +02:00
Add a way to set routing helper
This commit is contained in:
parent
7ba1d66e8c
commit
a55177cd67
3 changed files with 25 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue