make NetDevice fully virtual.

This commit is contained in:
Mathieu Lacage
2008-02-25 19:33:46 +01:00
parent 96b47442ea
commit 2eae2f926c
16 changed files with 632 additions and 755 deletions

View File

@@ -43,8 +43,8 @@ PointToPointIpv4Topology::AddNetDevice (
{
NS_ASSERT (channel->GetNDevices () <= 1);
Ptr<PointToPointNetDevice> nd = CreateObject<PointToPointNetDevice> (node);
Ptr<PointToPointNetDevice> nd = CreateObject<PointToPointNetDevice> (node, Mac48Address::Allocate ());
node->AddDevice (nd);
Ptr<Queue> q = Queue::CreateDefault ();
nd->AddQueue(q);
nd->Attach (channel);