Index: examples/wireless/multirate.cc |
=================================================================== |
--- a/examples/wireless/multirate.cc |
+++ b/examples/wireless/multirate.cc |
@@ -347,8 +347,8 @@ |
// Equipping the source node with OnOff Application used for sending |
OnOffHelper onoff ("ns3::UdpSocketFactory", Address (InetSocketAddress (Ipv4Address ("10.0.0.1"), 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 (60000000))); |
onoff.SetAttribute ("PacketSize", UintegerValue (packetSize)); |
onoff.SetAttribute ("Remote", AddressValue (InetSocketAddress (ipv4AddrServer, port))); |