Bug 2119 - valgrind leaks intermittently reported for fd-net-device dummy-network - Required SimulatorImplementationType to be set to ns3::RealtimeSimulatorImpl
--- 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 ();