summaryrefslogtreecommitdiff
path: root/ns3-simulator/modules/platform.cc
diff options
context:
space:
mode:
authorLoic Guegan <manzerberdes@gmx.com>2019-04-12 16:05:29 +0200
committerLoic Guegan <manzerberdes@gmx.com>2019-04-12 16:05:29 +0200
commit32ccf612d0ee2b167204f9b6191258ae890ccd7f (patch)
tree1cebbb50f3126f0bacaabb05cd5251beb3b1c156 /ns3-simulator/modules/platform.cc
parentcb10ad2490706fc87f19ef556f36aee679887ad6 (diff)
Add ECOFEN
Diffstat (limited to 'ns3-simulator/modules/platform.cc')
-rw-r--r--ns3-simulator/modules/platform.cc4
1 files changed, 2 insertions, 2 deletions
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<ns3::Node> 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<ConstantPositionMobilityModel> ());
}
@@ -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);