examples/simple-error-model.cc
changeset 2602 d9262bff6df2
parent 2600 6c389d0c717d
child 2613 0e1267814e1c
--- a/examples/simple-error-model.cc	Thu Mar 13 11:21:12 2008 -0700
+++ b/examples/simple-error-model.cc	Thu Mar 13 12:56:49 2008 -0700
@@ -144,7 +144,7 @@
   uint16_t port = 9;   // Discard port (RFC 863)
   Ptr<OnOffApplication> ooff = 
     CreateObject<OnOffApplication> ("Remote", Address (InetSocketAddress ("10.1.3.2", port)), 
-                                    "Protocol", TypeId::LookupByName ("Udp"),
+                                    "Protocol", TypeId::LookupByName ("ns3::Udp"),
                                     "OnTime", ConstantVariable(1), 
                                     "OffTime", ConstantVariable(0));
   n0->AddApplication (ooff);
@@ -154,7 +154,7 @@
 
   // Create an optional packet sink to receive these packets
   Ptr<PacketSink> sink = CreateObject<PacketSink> ("Local", Address (InetSocketAddress (Ipv4Address::GetAny (), port)),
-                                                   "Protocol", TypeId::LookupByName ("Udp"));
+                                                   "Protocol", TypeId::LookupByName ("ns3::Udp"));
   n3->AddApplication (sink);
   // Start the sink
   sink->Start (Seconds (1.0));
@@ -162,7 +162,7 @@
 
   // Create a similar flow from n3 to n1, starting at time 1.1 seconds
   ooff = CreateObject<OnOffApplication> ("Remote", Address (InetSocketAddress ("10.1.2.1", port)), 
-                                         "Protocol", TypeId::LookupByName ("Udp"),
+                                         "Protocol", TypeId::LookupByName ("ns3::Udp"),
                                          "OnTime", ConstantVariable(1), 
                                          "OffTime", ConstantVariable(0));
   n3->AddApplication (ooff);
@@ -172,7 +172,7 @@
 
   // Create a packet sink to receive these packets
   sink = CreateObject<PacketSink> ("Local", Address (InetSocketAddress (Ipv4Address::GetAny (), port)),
-                                   "Protocol", TypeId::LookupByName ("Udp"));
+                                   "Protocol", TypeId::LookupByName ("ns3::Udp"));
   n1->AddApplication (sink);
   // Start the sink
   sink->Start (Seconds (1.1));