Bug 2119 - valgrind leaks intermittently reported for fd-net-device dummy-network - Required SimulatorImplementationType to be set to ns3::RealtimeSimulatorImpl
authorAlina Quereilhac <aquereilhac@gmail.com>
Wed, 15 Jul 2015 16:52:16 +0200
changeset 11517 4be177372dc4
parent 11516 cf134cfd0c7f
child 11518 caafd61a47b7
Bug 2119 - valgrind leaks intermittently reported for fd-net-device dummy-network - Required SimulatorImplementationType to be set to ns3::RealtimeSimulatorImpl
src/fd-net-device/examples/dummy-network.cc
--- a/src/fd-net-device/examples/dummy-network.cc	Mon Jul 13 20:32:31 2015 -0700
+++ b/src/fd-net-device/examples/dummy-network.cc	Wed Jul 15 16:52:16 2015 +0200
@@ -35,6 +35,10 @@
 int
 main (int argc, char *argv[])
 {
+  GlobalValue::Bind ("SimulatorImplementationType", StringValue ("ns3::RealtimeSimulatorImpl"));
+
+  GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true));
+
   NodeContainer nodes;
   nodes.Create (2);
 
@@ -69,7 +73,7 @@
   app->SetStartTime (Seconds (0.0));
   app->SetStopTime (Seconds (4.0));
 
-  fd.EnablePcapAll ("dummy-network", false);
+  fd.EnablePcapAll ("dummy-network", true);
 
   Simulator::Stop (Seconds (5.));
   Simulator::Run ();