examples/csma-one-subnet.cc
changeset 2602 d9262bff6df2
parent 2600 6c389d0c717d
child 2801 edbd094336b5
--- a/examples/csma-one-subnet.cc	Thu Mar 13 11:21:12 2008 -0700
+++ b/examples/csma-one-subnet.cc	Thu Mar 13 12:56:49 2008 -0700
@@ -161,7 +161,7 @@
   uint16_t port = 9;   // Discard port (RFC 863)
   Ptr<OnOffApplication> ooff = 
     CreateObject<OnOffApplication> ("Remote", Address (InetSocketAddress ("10.1.1.2", port)), 
-                                    "Protocol", TypeId::LookupByName ("Udp"),
+                                    "Protocol", TypeId::LookupByName ("ns3::Udp"),
                                     "OnTime", ConstantVariable(1), 
                                     "OffTime", ConstantVariable(0));
   n0->AddApplication (ooff);
@@ -175,7 +175,7 @@
 // Create a similar flow from n3 to n0, starting at time 1.1 seconds
 //
   ooff = CreateObject<OnOffApplication> ("Remote", Address (InetSocketAddress ("10.1.1.1", port)), 
-                                         "Protocol", TypeId::LookupByName ("Udp"),
+                                         "Protocol", TypeId::LookupByName ("ns3::Udp"),
                                          "OnTime", ConstantVariable(1), 
                                          "OffTime", ConstantVariable(0));
   n3->AddApplication (ooff);