22 #include "ns3/socket-factory.h" 
   23 #include "ns3/udp-socket-factory.h" 
   24 #include "ns3/simulator.h" 
   25 #include "ns3/simple-channel.h" 
   26 #include "ns3/simple-net-device.h" 
   27 #include "ns3/simple-net-device-helper.h" 
   28 #include "ns3/socket.h" 
   29 #include "ns3/boolean.h" 
   33 #include "ns3/inet6-socket-address.h" 
   35 #include "ns3/ipv6-l3-protocol.h" 
   36 #include "ns3/icmpv6-l4-protocol.h" 
   37 #include "ns3/udp-l4-protocol.h" 
   38 #include "ns3/ipv6-static-routing.h" 
   39 #include "ns3/internet-stack-helper.h" 
   40 #include "ns3/ipv6-address-helper.h" 
   41 #include "ns3/ipv6-routing-helper.h" 
   63   void DoSendData (
Ptr<Socket> socket, std::string to);
 
   72   virtual void DoRun (
void);
 
   89   uint32_t availableData;
 
  121   Ptr<Node> rxNode = CreateObject<Node> ();
 
  123   Ptr<Node> fwNode = CreateObject<Node> ();
 
  125   Ptr<Node> txNode = CreateObject<Node> ();
 
  156   device = net1.
Get (0);
 
  162   device = net1.
Get (1);
 
  167   device = net2.
Get (0);
 
  173   device = net2.
Get (1);
 
  179   Ptr<Ipv6StaticRouting> ipv6StaticRouting = Ipv6RoutingHelper::GetRouting <Ipv6StaticRouting> (txNode->GetObject<
Ipv6> ()->GetRoutingProtocol ());
 
  208   Simulator::Destroy ();
 
AttributeValue implementation for Boolean. 
 
Keep track of a set of IPv6 interfaces. 
 
NetDeviceContainer Install(Ptr< Node > node) const 
This method creates an ns3::SimpleChannel with the attributes configured by SimpleNetDeviceHelper::Se...
 
Ptr< T > GetObject(void) const 
Get a pointer to the requested aggregated Object. 
 
Access to the IPv6 forwarding table, interfaces, and configuration. 
 
virtual bool SetAllowBroadcast(bool allowBroadcast)=0
Configure whether broadcast datagram transmissions are allowed. 
 
Ptr< NetDevice > Get(uint32_t i) const 
Get the Ptr stored in this container at a given index. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
void DoSendData(Ptr< Socket > socket, std::string to)
Send data. 
 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
 
IPv6 address associated with an interface. 
 
aggregate IP/TCP/UDP functionality to existing Nodes. 
 
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not. 
 
uint32_t GetSize(void) const 
Returns the the size in bytes of the packet (including the zero-filled initial payload). 
 
virtual Ptr< Socket > CreateSocket(void)=0
 
Ptr< Packet > m_receivedPacket
Received packet. 
 
This test suite implements a Unit Test. 
 
a polymophic address class 
 
IPv6 Forwarding TestSuite. 
 
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite. 
 
void ReceivePkt(Ptr< Socket > socket)
Receive data. 
 
holds a vector of ns3::NetDevice pointers 
 
An implementation of the ICMPv6 protocol. 
 
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
 
Ipv6ForwardingTestSuite()
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
keep track of a set of node pointers. 
 
virtual Ptr< Packet > Recv(uint32_t maxSize, uint32_t flags)=0
Read data from the socket. 
 
void SetNetDevicePointToPointMode(bool pointToPointMode)
SimpleNetDevice is Broadcast capable and ARP needing. 
 
void Install(std::string nodeName) const 
Aggregate implementations of the ns3::Ipv4, ns3::Ipv6, ns3::Udp, and ns3::Tcp classes onto the provid...
 
Helper class to auto-assign global IPv6 unicast addresses. 
 
void SendData(Ptr< Socket > socket, std::string to)
Send data. 
 
Describes an IPv6 address. 
 
void SetDefaultRoute(Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse=Ipv6Address("::"), uint32_t metric=0)
Set the default route. 
 
uint32_t GetId(void) const 
 
virtual Ptr< Node > GetNode(void) const =0
Return the node this socket is associated with. 
 
Time Seconds(double value)
Construct a Time in the indicated unit. 
 
static Ipv6ForwardingTestSuite g_ipv6forwardingTestSuite
Static variable for test initialization. 
 
void RemoveAllByteTags(void)
Remove all byte tags stored in this packet. 
 
Describes an IPv6 prefix. 
 
virtual bool AddAddress(uint32_t interface, Ipv6InterfaceAddress address)=0
Add an address on the specified IPv6 interface. 
 
virtual int SendTo(Ptr< Packet > p, uint32_t flags, const Address &toAddress)=0
Send data to a specified peer. 
 
API to create UDP socket instances. 
 
build a set of SimpleNetDevice objects 
 
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful. 
 
virtual int32_t GetInterfaceForDevice(Ptr< const NetDevice > device) const =0
Get the interface index of the specified NetDevice. 
 
virtual uint32_t GetRxAvailable(void) const =0
Return number of bytes which can be returned from one or multiple calls to Recv.