examples/simple-global-routing.cc
changeset 2602 d9262bff6df2
parent 2600 6c389d0c717d
child 2613 0e1267814e1c
--- a/examples/simple-global-routing.cc	Thu Mar 13 11:21:12 2008 -0700
+++ b/examples/simple-global-routing.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.3.2", port)), 
-                                    "Protocol", TypeId::LookupByName ("Udp"),
+                                    "Protocol", TypeId::LookupByName ("ns3::Udp"),
                                     "OnTime", ConstantVariable (1), 
                                     "OffTime", ConstantVariable (0));
   n0->AddApplication (ooff);
@@ -173,7 +173,7 @@
   // The last argument "true" disables output from the Receive callback
   Ptr<PacketSink> sink = 
     CreateObject<PacketSink> ("Remote", 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));
@@ -181,7 +181,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);
@@ -191,7 +191,7 @@
 
   // Create a packet sink to receive these packets
   sink = CreateObject<PacketSink> ("Remote", 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));