Index: src/test/static-routing-test-suite.cc |
=================================================================== |
--- a/src/test/static-routing-test-suite.cc |
+++ b/src/test/static-routing-test-suite.cc |
@@ -34,7 +34,6 @@ |
#include "ns3/packet-socket-address.h" |
#include "ns3/point-to-point-helper.h" |
#include "ns3/pointer.h" |
-#include "ns3/random-variable.h" |
#include "ns3/simulator.h" |
#include "ns3/string.h" |
#include "ns3/test.h" |
@@ -136,8 +135,8 @@ |
uint16_t port = 9; // Discard port (RFC 863) |
OnOffHelper onoff ("ns3::UdpSocketFactory", |
Address (InetSocketAddress (ifInAddrC.GetLocal (), 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]")); |
onoff.SetAttribute ("DataRate", DataRateValue (DataRate (6000))); |
ApplicationContainer apps = onoff.Install (nA); |
apps.Start (Seconds (1.0)); |