A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
StackHelper Class Reference

Helper to set or get some IPv6 information about nodes. More...

Public Member Functions

void AddAddress (Ptr< Node > &n, uint32_t interface, Ipv6Address address)
 Add an address to a IPv6 node.
 
void PrintRoutingTable (Ptr< Node > &n)
 Print the routing table.
 

Detailed Description

Helper to set or get some IPv6 information about nodes.

Definition at line 47 of file simple-routing-ping6.cc.

Member Function Documentation

◆ AddAddress()

void StackHelper::AddAddress ( Ptr< Node > &  n,
uint32_t  interface,
Ipv6Address  address 
)
inline

Add an address to a IPv6 node.

Parameters
nnode
interfaceinterface index
addressIPv6 address to add

Definition at line 56 of file simple-routing-ping6.cc.

◆ PrintRoutingTable()

void StackHelper::PrintRoutingTable ( Ptr< Node > &  n)
inline

Print the routing table.

Parameters
nthe node

Definition at line 66 of file simple-routing-ping6.cc.

References ns3::Ipv6RoutingTableEntry::GetDest(), ns3::Ipv6RoutingTableEntry::GetGateway(), ns3::Ipv6RoutingTableEntry::GetInterface(), ns3::Ipv6RoutingTableEntry::GetPrefixToUse(), and ns3::Ipv6StaticRoutingHelper::GetStaticRouting().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: