src/internet-stack/ipv4-test.cc
changeset 5919 b89ce2e9eed5
parent 5339 fee694e277da
child 6775 0783f42a364b
equal deleted inserted replaced
5918:a0e24e8844da 5919:b89ce2e9eed5
    92   num = interface->GetNAddresses ();
    92   num = interface->GetNAddresses ();
    93   NS_TEST_ASSERT_MSG_EQ (num, 3, "Should find 3 interfaces??");
    93   NS_TEST_ASSERT_MSG_EQ (num, 3, "Should find 3 interfaces??");
    94   Ipv4InterfaceAddress output = interface->GetAddress (2);
    94   Ipv4InterfaceAddress output = interface->GetAddress (2);
    95   NS_TEST_ASSERT_MSG_EQ (ifaceAddr4, output,
    95   NS_TEST_ASSERT_MSG_EQ (ifaceAddr4, output,
    96       "The addresses should be identical");
    96       "The addresses should be identical");
    97 
    97   Simulator::Destroy ();
    98   return false;
    98   return false;
    99 }
    99 }
   100 
   100 
   101 static class IPv4L3ProtocolTestSuite : public TestSuite
   101 static class IPv4L3ProtocolTestSuite : public TestSuite
   102 {
   102 {