Helper class that adds ns3::Ipv4ListRouting objects. More...
#include <ipv4-list-routing-helper.h>
Public Member Functions | |
void | Add (const Ipv4RoutingHelper &routing, int16_t priority) |
virtual Ptr< Ipv4RoutingProtocol > | Create (Ptr< Node > node) const |
Helper class that adds ns3::Ipv4ListRouting objects.
This class is expected to be used in conjunction with ns3::InternetStackHelper::SetRoutingHelper
void ns3::Ipv4ListRoutingHelper::Add | ( | const Ipv4RoutingHelper & | routing, | |
int16_t | priority | |||
) |
routing | a routing helper | |
priority | the priority of the associated helper |
Store in the internal list a reference to the input routing helper and associated priority. These helpers will be used later by the ns3::Ipv4ListRoutingHelper::Create method to create an ns3::Ipv4ListRouting object and add in it routing protocols created with the helpers.
virtual Ptr<Ipv4RoutingProtocol> ns3::Ipv4ListRoutingHelper::Create | ( | Ptr< Node > | node | ) | const [virtual] |
node | the node on which the routing protocol will run |
This method will be called by ns3::InternetStackHelper::Install
Implements ns3::Ipv4RoutingHelper.