--- a/tutorial/point-to-point-ipv4-topology.cc Tue Mar 11 11:35:26 2008 -0700
+++ b/tutorial/point-to-point-ipv4-topology.cc Tue Mar 11 13:30:12 2008 -0700
@@ -34,7 +34,7 @@
const DataRate& bps,
const Time& delay)
{
- return CreateObject<PointToPointChannel> (bps, delay);
+ return CreateObject<PointToPointChannel> ("BitRate", bps, "Delay", delay);
}
uint32_t
@@ -45,7 +45,7 @@
NS_ASSERT (channel->GetNDevices () <= 1);
Ptr<PointToPointNetDevice> nd =
- CreateObjectWith<PointToPointNetDevice> ("Node", node,
+ CreateObject<PointToPointNetDevice> ("Node", node,
"Address", Mac48Address::Allocate ());
node->AddDevice (nd);
Ptr<Queue> q = CreateObject<DropTailQueue> ();