introduce the ns3::String class, get rid of the string -> Attribute implicit conversion, and get rid of MakeDataRate, port PointToPointNetDevice to Attributes
This commit is contained in:
@@ -43,7 +43,9 @@ PointToPointIpv4Topology::AddNetDevice (
|
||||
{
|
||||
NS_ASSERT (channel->GetNDevices () <= 1);
|
||||
|
||||
Ptr<PointToPointNetDevice> nd = CreateObject<PointToPointNetDevice> (node, Mac48Address::Allocate ());
|
||||
Ptr<PointToPointNetDevice> nd =
|
||||
CreateObjectWith<PointToPointNetDevice> ("Node", node,
|
||||
"Address", Mac48Address::Allocate ());
|
||||
node->AddDevice (nd);
|
||||
Ptr<Queue> q = Queue::CreateDefault ();
|
||||
nd->AddQueue(q);
|
||||
|
||||
Reference in New Issue
Block a user