22 #include "ns3/node-list.h"
23 #include "ns3/simulator.h"
24 #include "ns3/ipv6-routing-protocol.h"
25 #include "ipv6-routing-helper.h"
49 Simulator::Schedule (printInterval, &Ipv6RoutingHelper::PrintEvery,
this, printInterval, node, stream);
62 Simulator::Schedule (printInterval, &Ipv6RoutingHelper::PrintEvery,
this, printInterval, node, stream);
71 rp->PrintRoutingTable (stream);
75 Ipv6RoutingHelper::PrintEvery (Time printInterval, Ptr<Node> node, Ptr<OutputStreamWrapper> stream)
const
77 Ptr<Ipv6> ipv6 = node->GetObject<Ipv6> ();
78 Ptr<Ipv6RoutingProtocol> rp = ipv6->GetRoutingProtocol ();
80 rp->PrintRoutingTable (stream);
81 Simulator::Schedule (printInterval, &Ipv6RoutingHelper::PrintEvery,
this, printInterval, node, stream);
virtual ~Ipv6RoutingHelper()
Destroy an Ipv6 Ipv6RoutingHelper.
static uint32_t GetNNodes(void)
Access to the IPv6 forwarding table, interfaces, and configuration.
static Ptr< Node > GetNode(uint32_t n)
#define NS_ASSERT(condition)
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
void PrintRoutingTableAllEvery(Time printInterval, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of all nodes at regular intervals specified by user.
void PrintRoutingTableAt(Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of a node at a particular time.
void PrintRoutingTableEvery(Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of a node at regular intervals specified by user.
Ptr< T > GetObject(void) const
void PrintRoutingTableAllAt(Time printTime, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of all nodes at a particular time.