Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ns3: no segfault anymore, but a deadlock when using clusters
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 27 Jan 2018 14:51:32 +0000 (15:51 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 27 Jan 2018 14:51:32 +0000 (15:51 +0100)
src/surf/network_ns3.cpp

index 9d75c4d..9d43965 100644 (file)
@@ -410,7 +410,7 @@ void ns3_add_cluster(const char* id, double bw, double lat) {
 
   xbt_assert(Nodes.GetN() <= 65000, "Cluster with NS3 is limited to 65000 nodes");
   ns3::CsmaHelper csma;
-  csma.SetDeviceAttribute("DataRate", ns3::DataRateValue(ns3::DataRate(bw * 8))); // NS3 takes bps, but we provide Bps
+  csma.SetChannelAttribute("DataRate", ns3::DataRateValue(ns3::DataRate(bw * 8))); // NS3 takes bps, but we provide Bps
   csma.SetChannelAttribute("Delay", ns3::TimeValue(ns3::Seconds(lat)));
   ns3::NetDeviceContainer devices = csma.Install(Nodes);
   XBT_DEBUG("Create CSMA");