Public Member Functions | |
Ipv6ForwardingTest () | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
void | ReceivePkt (Ptr< Socket > socket) |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
void | DoSendData (Ptr< Socket > socket, std::string to) |
void | SendData (Ptr< Socket > socket, std::string to) |
Private Attributes | |
Ptr< Packet > | m_receivedPacket |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
TestCase (std::string name) | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
void | SetDataDir (std::string directory) |
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 |
bool | MustContinueOnFailure (void) const |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
Definition at line 49 of file ipv6-forwarding-test.cc.
Ipv6ForwardingTest::Ipv6ForwardingTest | ( | ) |
Definition at line 62 of file ipv6-forwarding-test.cc.
|
virtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 96 of file ipv6-forwarding-test.cc.
References ns3::Ipv6::AddAddress(), ns3::SocketFactory::CreateSocket(), ns3::NetDeviceContainer::Get(), ns3::Ipv6::GetInterfaceForDevice(), ns3::Object::GetObject(), ns3::Packet::GetSize(), ns3::InternetStackHelper::Install(), ns3::SimpleNetDeviceHelper::Install(), m_receivedPacket, ns3::MakeCallback(), first::nodes, NS_TEST_EXPECT_MSG_EQ, ReceivePkt(), ns3::Packet::RemoveAllByteTags(), SendData(), ns3::Socket::SetAllowBroadcast(), ns3::ObjectBase::SetAttribute(), ns3::Ipv6StaticRouting::SetDefaultRoute(), and ns3::SimpleNetDeviceHelper::SetNetDevicePointToPointMode().
Definition at line 79 of file ipv6-forwarding-test.cc.
References NS_TEST_EXPECT_MSG_EQ, and ns3::Socket::SendTo().
Referenced by SendData().
Definition at line 67 of file ipv6-forwarding-test.cc.
References ns3::Socket::GetRxAvailable(), ns3::Packet::GetSize(), m_receivedPacket, NS_ASSERT, and ns3::Socket::Recv().
Referenced by DoRun().
Definition at line 87 of file ipv6-forwarding-test.cc.
References DoSendData(), ns3::Node::GetId(), ns3::Socket::GetNode(), m_receivedPacket, and ns3::Seconds().
Referenced by DoRun().
Definition at line 51 of file ipv6-forwarding-test.cc.
Referenced by DoRun(), ReceivePkt(), and SendData().