make NetDevice fully virtual.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user