From 32ccf612d0ee2b167204f9b6191258ae890ccd7f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 12 Apr 2019 16:05:29 +0200 Subject: Add ECOFEN --- ns3-simulator/modules/platform.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ns3-simulator/modules/platform.cc') diff --git a/ns3-simulator/modules/platform.cc b/ns3-simulator/modules/platform.cc index 82c293d..52f91b0 100644 --- a/ns3-simulator/modules/platform.cc +++ b/ns3-simulator/modules/platform.cc @@ -11,7 +11,7 @@ Cell createCell(uint32_t nbSensors, Ptr ap){ sensors.Create(nbSensors); // Place nodes somehow, this is required by every wireless simulation - for (uint8_t i = 0; i < nbSensors; ++i) + for (uint32_t i = 0; i < nbSensors; i++) { sensors.Get (i)->AggregateObject (CreateObject ()); } @@ -106,7 +106,7 @@ CloudInfos createCloud(int nbHop, uint32_t bandwidth, uint32_t latency){ p2pDevices = pointToPoint.Install (curNodes); Ipv4AddressHelper address; - address.SetBase (("10.1."+std::to_string(i)+".0").c_str(), "255.255.255.0"); + address.SetBase (("10."+std::to_string(i+1)+".0.0").c_str(), "255.255.0.0"); // Remember: 10.0.0.0 is used by WIFI Ipv4InterfaceContainer p2pInterfaces; p2pInterfaces = address.Assign (p2pDevices); -- cgit v1.2.3