Helper class that adds ns3::Ipv6StaticRouting objects. More...
#include "ipv6-static-routing-helper.h"
Public Member Functions | |
Ipv6StaticRoutingHelper () | |
Constructor. | |
Ipv6StaticRoutingHelper (const Ipv6StaticRoutingHelper &o) | |
Construct an Ipv6ListRoutingHelper from another previously initialized instance (Copy Constructor). | |
void | AddMulticastRoute (Ptr< Node > n, Ipv6Address source, Ipv6Address group, Ptr< NetDevice > input, NetDeviceContainer output) |
Add a multicast route to a node and net device using explicit Ptr<Node> and Ptr<NetDevice> | |
void | AddMulticastRoute (Ptr< Node > n, Ipv6Address source, Ipv6Address group, std::string inputName, NetDeviceContainer output) |
Add a multicast route to a node and device using a Ptr<Node> and a name string previously associated to the device using the Object Name Service. | |
void | AddMulticastRoute (std::string n, Ipv6Address source, Ipv6Address group, Ptr< NetDevice > input, NetDeviceContainer output) |
Add a multicast route to a node and device using a name string previously associated to the node using the Object Name Service and a Ptr<NetDevice> | |
void | AddMulticastRoute (std::string nName, Ipv6Address source, Ipv6Address group, std::string inputName, NetDeviceContainer output) |
Add a multicast route to a node and device using name strings previously associated to both the node and device using the Object Name Service. | |
Ipv6StaticRoutingHelper * | Copy () const override |
Ptr< Ipv6RoutingProtocol > | Create (Ptr< Node > node) const override |
Ptr< Ipv6StaticRouting > | GetStaticRouting (Ptr< Ipv6 > ipv6) const |
Get Ipv6StaticRouting pointer from IPv6 stack. | |
Ipv6StaticRoutingHelper & | operator= (const Ipv6StaticRoutingHelper &)=delete |
Public Member Functions inherited from ns3::Ipv6RoutingHelper | |
virtual | ~Ipv6RoutingHelper () |
Destroy an Ipv6 Ipv6RoutingHelper. | |
virtual Ipv6RoutingHelper * | Copy () const =0 |
virtual constructor | |
virtual Ptr< Ipv6RoutingProtocol > | Create (Ptr< Node > node) const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::Ipv6RoutingHelper | |
template<class T > | |
static Ptr< T > | GetRouting (Ptr< Ipv6RoutingProtocol > protocol) |
Request a specified routing protocol <T> from Ipv6RoutingProtocol protocol. | |
static void | PrintNeighborCacheAllAt (Time printTime, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of all nodes at a particular time. | |
static void | PrintNeighborCacheAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of all nodes at regular intervals specified by user. | |
static void | PrintNeighborCacheAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of a node at a particular time. | |
static void | PrintNeighborCacheEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of a node at regular intervals specified by user. | |
static void | PrintRoutingTableAllAt (Time printTime, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of all nodes at a particular time. | |
static void | PrintRoutingTableAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of all nodes at regular intervals specified by user. | |
static void | PrintRoutingTableAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of a node at a particular time. | |
static void | PrintRoutingTableEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of a node at regular intervals specified by user. | |
Helper class that adds ns3::Ipv6StaticRouting objects.
This class is expected to be used in conjunction with ns3::InternetStackHelper::SetRoutingHelper
Definition at line 42 of file ipv6-static-routing-helper.h.
ns3::Ipv6StaticRoutingHelper::Ipv6StaticRoutingHelper | ( | ) |
Constructor.
Definition at line 38 of file ipv6-static-routing-helper.cc.
Referenced by Copy().
ns3::Ipv6StaticRoutingHelper::Ipv6StaticRoutingHelper | ( | const Ipv6StaticRoutingHelper & | o | ) |
Construct an Ipv6ListRoutingHelper from another previously initialized instance (Copy Constructor).
o | object to be copied |
Definition at line 42 of file ipv6-static-routing-helper.cc.
void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute | ( | Ptr< Node > | n, |
Ipv6Address | source, | ||
Ipv6Address | group, | ||
Ptr< NetDevice > | input, | ||
NetDeviceContainer | output | ||
) |
Add a multicast route to a node and net device using explicit Ptr<Node> and Ptr<NetDevice>
n | The node. |
source | Source address. |
group | Multicast group. |
input | Input NetDevice. |
output | Output NetDevices. |
Definition at line 89 of file ipv6-static-routing-helper.cc.
References ns3::NetDeviceContainer::Begin(), ns3::NetDeviceContainer::End(), GetStaticRouting(), and NS_ASSERT_MSG.
Referenced by AddMulticastRoute().
void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute | ( | Ptr< Node > | n, |
Ipv6Address | source, | ||
Ipv6Address | group, | ||
std::string | inputName, | ||
NetDeviceContainer | output | ||
) |
Add a multicast route to a node and device using a Ptr<Node> and a name string previously associated to the device using the Object Name Service.
n | The node. |
source | Source address. |
group | Multicast group. |
inputName | Input NetDevice. |
output | Output NetDevices. |
Definition at line 126 of file ipv6-static-routing-helper.cc.
References AddMulticastRoute().
void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute | ( | std::string | n, |
Ipv6Address | source, | ||
Ipv6Address | group, | ||
Ptr< NetDevice > | input, | ||
NetDeviceContainer | output | ||
) |
Add a multicast route to a node and device using a name string previously associated to the node using the Object Name Service and a Ptr<NetDevice>
n | The node. |
source | Source address. |
group | Multicast group. |
input | Input NetDevice. |
output | Output NetDevices. |
Definition at line 137 of file ipv6-static-routing-helper.cc.
References AddMulticastRoute().
void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute | ( | std::string | nName, |
Ipv6Address | source, | ||
Ipv6Address | group, | ||
std::string | inputName, | ||
NetDeviceContainer | output | ||
) |
Add a multicast route to a node and device using name strings previously associated to both the node and device using the Object Name Service.
nName | The node. |
source | Source address. |
group | Multicast group. |
inputName | Input NetDevice. |
output | Output NetDevices. |
Definition at line 148 of file ipv6-static-routing-helper.cc.
References AddMulticastRoute().
|
overridevirtual |
This method is mainly for internal use by the other helpers; clients are expected to free the dynamic memory allocated by this method
Implements ns3::Ipv6RoutingHelper.
Definition at line 47 of file ipv6-static-routing-helper.cc.
References Ipv6StaticRoutingHelper().
|
overridevirtual |
node | the node on which the routing protocol will run |
This method will be called by ns3::InternetStackHelper::Install
Implements ns3::Ipv6RoutingHelper.
Definition at line 53 of file ipv6-static-routing-helper.cc.
Ptr< Ipv6StaticRouting > ns3::Ipv6StaticRoutingHelper::GetStaticRouting | ( | Ptr< Ipv6 > | ipv6 | ) | const |
Get Ipv6StaticRouting pointer from IPv6 stack.
ipv6 | Ipv6 pointer |
Definition at line 59 of file ipv6-static-routing-helper.cc.
References NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by ns3::NoBackhaulEpcHelper::NoBackhaulEpcHelper(), AddMulticastRoute(), LteIpv6RoutingTestCase::DoRun(), StackHelper::PrintRoutingTable(), ns3::Ipv6InterfaceContainer::SetDefaultRoute(), and ns3::Ipv6InterfaceContainer::SetDefaultRouteInAllNodes().
|
delete |