A Discrete-Event Network Simulator
API
SixlowpanFragmentationTest Class Reference
+ Inheritance diagram for SixlowpanFragmentationTest:
+ Collaboration diagram for SixlowpanFragmentationTest:

Public Member Functions

 SixlowpanFragmentationTest ()
 
 ~SixlowpanFragmentationTest ()
 
virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 
void HandleReadClient (Ptr< Socket > socket)
 
void HandleReadIcmpClient (Ipv6Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo)
 
void HandleReadServer (Ptr< Socket > socket)
 
Ptr< PacketSendClient (void)
 
void SetFill (uint8_t *fill, uint32_t fillSize, uint32_t dataSize)
 
void StartClient (Ptr< Node > ClientNode)
 
void StartServer (Ptr< Node > ServerNode)
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Private Attributes

uint8_t * m_data
 
uint32_t m_dataSize
 
uint8_t m_icmpCode
 
uint8_t m_icmpType
 
Ptr< Packetm_receivedPacketClient
 
Ptr< Packetm_receivedPacketServer
 
Ptr< Packetm_sentPacketClient
 
uint32_t m_size
 
Ptr< Socketm_socketClient
 
Ptr< Socketm_socketServer
 

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, enum TestDuration duration)
 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

Definition at line 48 of file sixlowpan-fragmentation-test.cc.

Constructor & Destructor Documentation

SixlowpanFragmentationTest::SixlowpanFragmentationTest ( )
SixlowpanFragmentationTest::~SixlowpanFragmentationTest ( )

Definition at line 94 of file sixlowpan-fragmentation-test.cc.

References m_data, and m_dataSize.

Member Function Documentation

void SixlowpanFragmentationTest::HandleReadClient ( Ptr< Socket socket)

Definition at line 156 of file sixlowpan-fragmentation-test.cc.

References ns3::Packet::Copy(), m_receivedPacketClient, and ns3::Socket::RecvFrom().

Referenced by StartClient().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SixlowpanFragmentationTest::HandleReadIcmpClient ( Ipv6Address  icmpSource,
uint8_t  icmpTtl,
uint8_t  icmpType,
uint8_t  icmpCode,
uint32_t  icmpInfo 
)

Definition at line 170 of file sixlowpan-fragmentation-test.cc.

References m_icmpCode, and m_icmpType.

Referenced by StartClient().

+ Here is the caller graph for this function:

void SixlowpanFragmentationTest::HandleReadServer ( Ptr< Socket socket)

Definition at line 122 of file sixlowpan-fragmentation-test.cc.

References ns3::Packet::Copy(), m_receivedPacketServer, ns3::Socket::RecvFrom(), ns3::Packet::RemoveAllByteTags(), and ns3::Packet::RemoveAllPacketTags().

Referenced by StartServer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ptr< Packet > SixlowpanFragmentationTest::SendClient ( void  )

Definition at line 206 of file sixlowpan-fragmentation-test.cc.

References m_data, m_dataSize, m_size, m_socketClient, and ns3::Socket::Send().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SixlowpanFragmentationTest::SetFill ( uint8_t *  fill,
uint32_t  fillSize,
uint32_t  dataSize 
)

Definition at line 179 of file sixlowpan-fragmentation-test.cc.

References m_data, m_dataSize, and m_size.

Referenced by DoRun().

+ Here is the caller graph for this function:

void SixlowpanFragmentationTest::StartClient ( Ptr< Node ClientNode)

Definition at line 139 of file sixlowpan-fragmentation-test.cc.

References ns3::Socket::Bind(), ns3::Socket::Connect(), HandleReadClient(), HandleReadIcmpClient(), m_socketClient, ns3::MakeCallback(), ns3::ObjectBase::SetAttribute(), and ns3::Socket::SetRecvCallback().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SixlowpanFragmentationTest::StartServer ( Ptr< Node ServerNode)

Definition at line 106 of file sixlowpan-fragmentation-test.cc.

References ns3::Socket::Bind(), HandleReadServer(), m_socketServer, ns3::MakeCallback(), and ns3::Socket::SetRecvCallback().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint8_t* SixlowpanFragmentationTest::m_data
private
uint32_t SixlowpanFragmentationTest::m_dataSize
private
uint8_t SixlowpanFragmentationTest::m_icmpCode
private
uint8_t SixlowpanFragmentationTest::m_icmpType
private
Ptr<Packet> SixlowpanFragmentationTest::m_receivedPacketClient
private

Definition at line 51 of file sixlowpan-fragmentation-test.cc.

Referenced by HandleReadClient().

Ptr<Packet> SixlowpanFragmentationTest::m_receivedPacketServer
private

Definition at line 52 of file sixlowpan-fragmentation-test.cc.

Referenced by DoRun(), and HandleReadServer().

Ptr<Packet> SixlowpanFragmentationTest::m_sentPacketClient
private

Definition at line 50 of file sixlowpan-fragmentation-test.cc.

uint32_t SixlowpanFragmentationTest::m_size
private

Definition at line 58 of file sixlowpan-fragmentation-test.cc.

Referenced by SendClient(), SetFill(), and SixlowpanFragmentationTest().

Ptr<Socket> SixlowpanFragmentationTest::m_socketClient
private

Definition at line 55 of file sixlowpan-fragmentation-test.cc.

Referenced by DoRun(), SendClient(), and StartClient().

Ptr<Socket> SixlowpanFragmentationTest::m_socketServer
private

Definition at line 54 of file sixlowpan-fragmentation-test.cc.

Referenced by SixlowpanFragmentationTest(), and StartServer().


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