utils/print-introspected-doxygen.cc
changeset 2470 254581fb9e9c
parent 2258 666099a753e0
child 2500 1fb9430f642d
--- a/utils/print-introspected-doxygen.cc	Sun Feb 24 20:18:02 2008 +0100
+++ b/utils/print-introspected-doxygen.cc	Mon Feb 25 19:33:46 2008 +0100
@@ -119,9 +119,12 @@
   Ptr<Node> node = CreateObject<InternetNode> ();
   node->AggregateObject (CreateObject<MobilityModelNotifier> ());
 
-  Ptr<PointToPointNetDevice> p2p = CreateObject<PointToPointNetDevice> (node);
+  Ptr<PointToPointNetDevice> p2p = CreateObject<PointToPointNetDevice> (node, Mac48Address::Allocate ());
+  node->AddDevice (p2p);
   p2p->AddQueue (Queue::CreateDefault ());
-  Ptr<CsmaNetDevice> csma = CreateObject<CsmaNetDevice> (node);
+  Ptr<CsmaNetDevice> csma = CreateObject<CsmaNetDevice> (node, Mac48Address::Allocate (),
+							 CsmaNetDevice::LLC);
+  node->AddDevice (csma);
   csma->AddQueue (Queue::CreateDefault ());
 
   TraceResolver::SourceCollection collection;