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

IPv6 dual stack Test. More...

+ Inheritance diagram for DualStackTestCase:
+ Collaboration diagram for DualStackTestCase:

Public Member Functions

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

Private Member Functions

void DoRun () override
 Implementation to actually run this TestCase.
 
void DoTeardown () override
 Implementation to do any local setup required for this TestCase.
 
void ServerHandleConnectionCreated1 (Ptr< Socket > s, const Address &addr)
 Handle connection created (1).
 
void ServerHandleConnectionCreated2 (Ptr< Socket > s, const Address &addr)
 Handle connection created (2).
 
void ServerHandleConnectionCreated3 (Ptr< Socket > s, const Address &addr)
 Handle connection created (3).
 
void ServerHandleConnectionCreated4 (Ptr< Socket > s, const Address &addr)
 Handle connection created (4).
 
void SetUpSim ()
 Setup the test.
 

Private Attributes

Ptr< Nodenode0
 Node 0.
 
Ptr< Nodenode1
 Node 1.
 
Address receivedAddr1
 Received address (1).
 
Address receivedAddr2
 Received address (2).
 
Address receivedAddr3
 Received address (3).
 
Address receivedAddr4
 Received address (4).
 
Ptr< Socketserver1
 Server socket (1).
 
Ptr< Socketserver2
 Server socket (2).
 
Ptr< Socketserver3
 Server socket (3).
 
Ptr< Socketserver4
 Server socket (4).
 
Ptr< Socketsource1
 Sending socket (1).
 
Ptr< Socketsource2
 Sending socket (2).
 
Ptr< Socketsource3
 Sending socket (3).
 
Ptr< Socketsource4
 Sending socket (4).
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum class  Duration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto QUICK = Duration::QUICK
 Deprecated test duration simple enums.
 
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto TAKES_FOREVER = Duration::TAKES_FOREVER
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor.
 
void AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK)
 Add an individual child TestCase to this test suite.
 
TestCaseGetParent () const
 Get the parent of this TestCase.
 
bool IsStatusFailure () const
 Check if any tests failed.
 
bool IsStatusSuccess () const
 Check if all tests passed.
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found.
 
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.
 
bool MustAssertOnFailure () const
 Check if this run should assert on failure.
 
bool MustContinueOnFailure () const
 Check if this run should continue on failure.
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory.
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory.
 

Detailed Description

IPv6 dual stack Test.

Definition at line 47 of file ipv6-dual-stack-test-suite.cc.

Constructor & Destructor Documentation

◆ DualStackTestCase()

DualStackTestCase::DualStackTestCase ( )

Member Function Documentation

◆ DoRun()

◆ DoTeardown()

void DualStackTestCase::DoTeardown ( )
overrideprivatevirtual

Implementation to do any local setup required for this TestCase.

Subclasses should override this method to perform any costly per-test teardown

Reimplemented from ns3::TestCase.

Definition at line 338 of file ipv6-dual-stack-test-suite.cc.

References ns3::Simulator::Destroy().

+ Here is the call graph for this function:

◆ ServerHandleConnectionCreated1()

void DualStackTestCase::ServerHandleConnectionCreated1 ( Ptr< Socket > s,
const Address & addr )
private

Handle connection created (1).

Parameters
sThe socket.
addrThe peer address.

Definition at line 223 of file ipv6-dual-stack-test-suite.cc.

References receivedAddr1.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ ServerHandleConnectionCreated2()

void DualStackTestCase::ServerHandleConnectionCreated2 ( Ptr< Socket > s,
const Address & addr )
private

Handle connection created (2).

Parameters
sThe socket.
addrThe peer address.

Definition at line 229 of file ipv6-dual-stack-test-suite.cc.

References receivedAddr2.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ ServerHandleConnectionCreated3()

void DualStackTestCase::ServerHandleConnectionCreated3 ( Ptr< Socket > s,
const Address & addr )
private

Handle connection created (3).

Parameters
sThe socket.
addrThe peer address.

Definition at line 235 of file ipv6-dual-stack-test-suite.cc.

References receivedAddr3.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ ServerHandleConnectionCreated4()

void DualStackTestCase::ServerHandleConnectionCreated4 ( Ptr< Socket > s,
const Address & addr )
private

Handle connection created (4).

Parameters
sThe socket.
addrThe peer address.

Definition at line 241 of file ipv6-dual-stack-test-suite.cc.

References receivedAddr4.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ SetUpSim()

void DualStackTestCase::SetUpSim ( )
private

Setup the test.

Definition at line 188 of file ipv6-dual-stack-test-suite.cc.

References AddSimpleNetDevice(), CreateDualStackNode(), ns3::CreateObject(), ns3::Socket::CreateSocket(), ns3::Object::GetObject(), node0, node1, server1, server2, server3, server4, source1, source2, source3, and source4.

Referenced by DoRun().

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

Member Data Documentation

◆ node0

Ptr<Node> DualStackTestCase::node0
private

Node 0.

Definition at line 61 of file ipv6-dual-stack-test-suite.cc.

Referenced by SetUpSim().

◆ node1

◆ receivedAddr1

Address DualStackTestCase::receivedAddr1
private

Received address (1).

Definition at line 99 of file ipv6-dual-stack-test-suite.cc.

Referenced by DualStackTestCase(), DoRun(), and ServerHandleConnectionCreated1().

◆ receivedAddr2

Address DualStackTestCase::receivedAddr2
private

Received address (2).

Definition at line 100 of file ipv6-dual-stack-test-suite.cc.

Referenced by DualStackTestCase(), DoRun(), and ServerHandleConnectionCreated2().

◆ receivedAddr3

Address DualStackTestCase::receivedAddr3
private

Received address (3).

Definition at line 101 of file ipv6-dual-stack-test-suite.cc.

Referenced by DualStackTestCase(), DoRun(), and ServerHandleConnectionCreated3().

◆ receivedAddr4

Address DualStackTestCase::receivedAddr4
private

Received address (4).

Definition at line 102 of file ipv6-dual-stack-test-suite.cc.

Referenced by DualStackTestCase(), DoRun(), and ServerHandleConnectionCreated4().

◆ server1

Ptr<Socket> DualStackTestCase::server1
private

Server socket (1).

Definition at line 89 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ server2

Ptr<Socket> DualStackTestCase::server2
private

Server socket (2).

Definition at line 90 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ server3

Ptr<Socket> DualStackTestCase::server3
private

Server socket (3).

Definition at line 91 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ server4

Ptr<Socket> DualStackTestCase::server4
private

Server socket (4).

Definition at line 92 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ source1

Ptr<Socket> DualStackTestCase::source1
private

Sending socket (1).

Definition at line 94 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ source2

Ptr<Socket> DualStackTestCase::source2
private

Sending socket (2).

Definition at line 95 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ source3

Ptr<Socket> DualStackTestCase::source3
private

Sending socket (3).

Definition at line 96 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().

◆ source4

Ptr<Socket> DualStackTestCase::source4
private

Sending socket (4).

Definition at line 97 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and SetUpSim().


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