src/helper/ping6-helper.cc
changeset 5891 09a575cdf8db
parent 5789 68cbb1f3c020
--- a/src/helper/ping6-helper.cc	Tue Dec 29 16:22:06 2009 -0800
+++ b/src/helper/ping6-helper.cc	Wed Dec 30 14:22:25 2009 +0100
@@ -51,16 +51,16 @@
 {
   ApplicationContainer apps;
   for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i)
-  {
-    Ptr<Node> node = *i;
-    Ptr<Ping6> client = m_factory.Create<Ping6> ();
-    client->SetLocal (m_localIp);
-    client->SetRemote (m_remoteIp);
-    client->SetIfIndex (m_ifIndex);
-    client->SetRouters (m_routers);
-    node->AddApplication (client);
-    apps.Add (client);
-  }
+    {
+      Ptr<Node> node = *i;
+      Ptr<Ping6> client = m_factory.Create<Ping6> ();
+      client->SetLocal (m_localIp);
+      client->SetRemote (m_remoteIp);
+      client->SetIfIndex (m_ifIndex);
+      client->SetRouters (m_routers);
+      node->AddApplication (client);
+      apps.Add (client);
+    }
   return apps;  
 }