--- a/examples/routing/simple-alternate-routing.cc Mon Aug 13 10:46:09 2012 -0700
+++ b/examples/routing/simple-alternate-routing.cc Mon Aug 13 16:08:13 2012 -0700
@@ -140,8 +140,8 @@
// Create a flow from n3 to n1, starting at time 1.1 seconds
OnOffHelper onoff ("ns3::UdpSocketFactory",
Address (InetSocketAddress (i1i2.GetAddress (0), port)));
- onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
- onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+ onoff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
+ onoff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
ApplicationContainer apps = onoff.Install (c.Get (3));
apps.Start (Seconds (1.1));