A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Ipv6FragmentationTest Class Reference
+ Inheritance diagram for ns3::Ipv6FragmentationTest:
+ Collaboration diagram for ns3::Ipv6FragmentationTest:

Public Member Functions

 Ipv6FragmentationTest ()
 ~Ipv6FragmentationTest ()
virtual void DoRun (void)
 Implementation to actually run this test case.
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 ()

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

- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
void AddTestCase (TestCase *testCase)
 Add an individual test case to this test suite.
std::string CreateDataDirFilename (std::string filename)
std::string CreateTempDirFilename (std::string filename)
bool GetErrorStatus (void) const NS_DEPRECATED
std::string GetName (void) const
bool IsStatusFailure (void) const
bool IsStatusSuccess (void) const
bool MustAssertOnFailure (void) const
bool MustContinueOnFailure (void) const
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
void SetDataDir (std::string directory)

Detailed Description

Definition at line 93 of file ipv6-fragmentation-test.cc.

Constructor & Destructor Documentation

ns3::Ipv6FragmentationTest::Ipv6FragmentationTest ( )

Definition at line 129 of file ipv6-fragmentation-test.cc.

References m_data, m_dataSize, and m_socketServer.

ns3::Ipv6FragmentationTest::~Ipv6FragmentationTest ( )

Definition at line 137 of file ipv6-fragmentation-test.cc.

References m_data, and m_dataSize.

Member Function Documentation

void ns3::Ipv6FragmentationTest::HandleReadClient ( Ptr< Socket socket)

Definition at line 199 of file ipv6-fragmentation-test.cc.

References ns3::Packet::Copy(), ns3::Inet6SocketAddress::IsMatchingType(), 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 ns3::Ipv6FragmentationTest::HandleReadIcmpClient ( Ipv6Address  icmpSource,
uint8_t  icmpTtl,
uint8_t  icmpType,
uint8_t  icmpCode,
uint32_t  icmpInfo 
)

Definition at line 213 of file ipv6-fragmentation-test.cc.

References m_icmpCode, and m_icmpType.

Referenced by StartClient().

+ Here is the caller graph for this function:

void ns3::Ipv6FragmentationTest::HandleReadServer ( Ptr< Socket socket)

Definition at line 165 of file ipv6-fragmentation-test.cc.

References ns3::Packet::Copy(), ns3::Inet6SocketAddress::IsMatchingType(), 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 > ns3::Ipv6FragmentationTest::SendClient ( void  )

Definition at line 249 of file ipv6-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 ns3::Ipv6FragmentationTest::SetFill ( uint8_t *  fill,
uint32_t  fillSize,
uint32_t  dataSize 
)

Definition at line 222 of file ipv6-fragmentation-test.cc.

References m_data, m_dataSize, and m_size.

Referenced by DoRun().

+ Here is the caller graph for this function:

void ns3::Ipv6FragmentationTest::StartClient ( Ptr< Node ClientNode)
void ns3::Ipv6FragmentationTest::StartServer ( Ptr< Node ServerNode)

Definition at line 149 of file ipv6-fragmentation-test.cc.

References ns3::Socket::Bind(), ns3::Socket::CreateSocket(), HandleReadServer(), ns3::TypeId::LookupByName(), 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* ns3::Ipv6FragmentationTest::m_data
private
uint32_t ns3::Ipv6FragmentationTest::m_dataSize
private
uint8_t ns3::Ipv6FragmentationTest::m_icmpCode
private

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

Referenced by DoRun(), and HandleReadIcmpClient().

uint8_t ns3::Ipv6FragmentationTest::m_icmpType
private

Definition at line 105 of file ipv6-fragmentation-test.cc.

Referenced by DoRun(), and HandleReadIcmpClient().

Ptr<Packet> ns3::Ipv6FragmentationTest::m_receivedPacketClient
private

Definition at line 96 of file ipv6-fragmentation-test.cc.

Referenced by HandleReadClient().

Ptr<Packet> ns3::Ipv6FragmentationTest::m_receivedPacketServer
private

Definition at line 97 of file ipv6-fragmentation-test.cc.

Referenced by DoRun(), and HandleReadServer().

Ptr<Packet> ns3::Ipv6FragmentationTest::m_sentPacketClient
private

Definition at line 95 of file ipv6-fragmentation-test.cc.

uint32_t ns3::Ipv6FragmentationTest::m_size
private

Definition at line 104 of file ipv6-fragmentation-test.cc.

Referenced by SendClient(), and SetFill().

Ptr<Socket> ns3::Ipv6FragmentationTest::m_socketClient
private

Definition at line 101 of file ipv6-fragmentation-test.cc.

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

Ptr<Socket> ns3::Ipv6FragmentationTest::m_socketServer
private

Definition at line 100 of file ipv6-fragmentation-test.cc.

Referenced by Ipv6FragmentationTest(), and StartServer().


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