ensure that device is reported in node.

This commit is contained in:
Mathieu Lacage
2008-03-09 23:43:29 +01:00
parent ad625de65a
commit fcc2066d01

View File

@@ -426,6 +426,7 @@ UdpSocketTest::RunTests (void)
Ptr<PointToPointNetDevice> txDev;
{
txDev = CreateObjectWith<PointToPointNetDevice> ("Node", txNode, "Address", Mac48Address::Allocate ());
txNode->AddDevice (txDev);
txDev->AddQueue(CreateObject<DropTailQueue> ());
Ptr<Ipv4> ipv4 = txNode->GetObject<Ipv4> ();
uint32_t netdev_idx = ipv4->AddInterface (txDev);