A Discrete-Event Network Simulator
API
RadvdTestCase Class Reference

radvd basic tests More...

+ Inheritance diagram for RadvdTestCase:
+ Collaboration diagram for RadvdTestCase:

Public Member Functions

 RadvdTestCase ()
 
virtual ~RadvdTestCase ()
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void CheckAddresses (Ptr< NetDevice > n0Dev, Ptr< NetDevice > r0Dev, Ptr< NetDevice > r1Dev, Ptr< NetDevice > n1Dev)
 Checks the addresses on the selected NetDevices. More...
 
void CheckRouting (Ptr< NetDevice > n0Dev, Ptr< NetDevice > r0Dev, Ptr< NetDevice > r1Dev, Ptr< NetDevice > n1Dev)
 Checks the routing between the selected NetDevices. More...
 
virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 

Private Attributes

std::vector< Ipv6Addressm_addresses
 Addresses on the nodes. More...
 
std::vector< Ptr< Ipv6Route > > m_routes
 Routing call results. More...
 
std::vector< Socket::SocketErrnom_routingResults
 Routing call return values. More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

radvd basic tests

Definition at line 47 of file ipv6-radvd-test.cc.

Constructor & Destructor Documentation

◆ RadvdTestCase()

RadvdTestCase::RadvdTestCase ( )

Definition at line 78 of file ipv6-radvd-test.cc.

◆ ~RadvdTestCase()

RadvdTestCase::~RadvdTestCase ( )
virtual

Definition at line 83 of file ipv6-radvd-test.cc.

Member Function Documentation

◆ CheckAddresses()

void RadvdTestCase::CheckAddresses ( Ptr< NetDevice n0Dev,
Ptr< NetDevice r0Dev,
Ptr< NetDevice r1Dev,
Ptr< NetDevice n1Dev 
)
private

Checks the addresses on the selected NetDevices.

Parameters
n0Devnode 0 device
r0Devrouter device toward node 0
r1Devrouter device toward node 1
n1Devnode 1 device

Definition at line 88 of file ipv6-radvd-test.cc.

References m_addresses.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ CheckRouting()

void RadvdTestCase::CheckRouting ( Ptr< NetDevice n0Dev,
Ptr< NetDevice r0Dev,
Ptr< NetDevice r1Dev,
Ptr< NetDevice n1Dev 
)
private

Checks the routing between the selected NetDevices.

Parameters
n0Devnode 0 device
r0Devrouter device toward node 0
r1Devrouter device toward node 1
n1Devnode 1 device

Definition at line 106 of file ipv6-radvd-test.cc.

References m_addresses, m_routes, m_routingResults, ns3::Ipv6Header::SetDestination(), and ns3::Ipv6Header::SetSource().

Referenced by DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoRun()

Member Data Documentation

◆ m_addresses

std::vector<Ipv6Address> RadvdTestCase::m_addresses
private

Addresses on the nodes.

Definition at line 73 of file ipv6-radvd-test.cc.

Referenced by CheckAddresses(), CheckRouting(), and DoRun().

◆ m_routes

std::vector<Ptr<Ipv6Route> > RadvdTestCase::m_routes
private

Routing call results.

Definition at line 75 of file ipv6-radvd-test.cc.

Referenced by CheckRouting(), and DoRun().

◆ m_routingResults

std::vector<Socket::SocketErrno> RadvdTestCase::m_routingResults
private

Routing call return values.

Definition at line 74 of file ipv6-radvd-test.cc.

Referenced by CheckRouting(), and DoRun().


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