32 #include "ns3/mesh-helper.h" 
   33 #include "ns3/simulator.h" 
   34 #include "ns3/mobility-helper.h" 
   35 #include "ns3/dsdv-helper.h" 
   36 #include "ns3/double.h" 
   37 #include "ns3/uinteger.h" 
   38 #include "ns3/v4ping-helper.h" 
   39 #include "ns3/string.h" 
   40 #include "ns3/boolean.h" 
   41 #include "ns3/pcap-file.h" 
   42 #include "ns3/internet-stack-helper.h" 
   43 #include "ns3/ipv4-address-helper.h" 
   44 #include "ns3/dsdv-packet.h" 
   45 #include "ns3/dsdv-rtable.h" 
   71   : 
TestCase (
"Verifying the DSDV header")
 
  128   : 
TestCase (
"Dsdv Routing Table test case")
 
  201   Simulator::Destroy ();
 
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer. 
 
DsdvTestSuite g_dsdvTestSuite
the test suite 
 
Ipv4Address GetLocal(void) const 
Get the local address. 
 
a class to represent an Ipv4 address mask 
 
uint32_t GetSeqNo() const 
Get sequence number. 
 
#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). 
 
This test suite implements a Unit Test. 
 
The Routing table used by DSDV protocol. 
 
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite. 
 
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
bool AddRoute(RoutingTableEntry &r)
Add routing table entry if it doesn't yet exist in routing table. 
 
uint32_t RoutingTableSize()
Provides the number of routes present in that nodes routing table. 
 
DSDV routing table tests (adding and looking up routes) 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
uint32_t GetHop() const 
Get hop. 
 
Ipv4 addresses are stored in host order in this class. 
 
Ipv4Address GetBroadcast(void) const 
Get the broadcast address. 
 
a class to store IPv4 address information on an interface 
 
Ipv4InterfaceAddress GetInterface() const 
Get interface address. 
 
Time Seconds(double value)
Construct a Time in the indicated unit. 
 
Ipv4Address GetDestination() const 
Get destination IP address. 
 
bool LookupRoute(Ipv4Address dst, RoutingTableEntry &rt)
Lookup routing table entry with destination address dst. 
 
void AddHeader(const Header &header)
Add header to this packet.