#include <ipv4-list-routing.h>
Inherits ns3::Ipv4RoutingProtocol.
Public Member Functions | |
virtual void | AddRoutingProtocol (Ptr< Ipv4RoutingProtocol > routingProtocol, int16_t priority) |
Register a new routing protocol to be used in this IPv4 stack. | |
virtual uint32_t | GetNRoutingProtocols (void) const |
virtual Ptr< Ipv4RoutingProtocol > | GetRoutingProtocol (uint32_t index, int16_t &priority) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::Ipv4ListRouting. | |
Protected Member Functions | |
void | DoDispose (void) |
virtual void ns3::Ipv4ListRouting::AddRoutingProtocol | ( | Ptr< Ipv4RoutingProtocol > | routingProtocol, | |
int16_t | priority | |||
) | [virtual] |
Register a new routing protocol to be used in this IPv4 stack.
routingProtocol | new routing protocol implementation object | |
priority | priority to give to this routing protocol. Values may range between -32768 and +32767. |
void ns3::Ipv4ListRouting::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::Object.
virtual uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols | ( | void | ) | const [virtual] |
virtual Ptr<Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol | ( | uint32_t | index, | |
int16_t & | priority | |||
) | const [virtual] |
Return pointer to routing protocol stored at index, with the first protocol (index 0) the highest priority, the next one (index 1) the second highest priority, and so on. The priority parameter is an output parameter and it returns the integer priority of the protocol.
index | index of protocol to return | |
priority | output parameter, set to the priority of the protocol being returned |
static TypeId ns3::Ipv4ListRouting::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::Ipv4ListRouting.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::Object.