diff --git a/src/aodv/test/bug-772.cc b/src/aodv/test/bug-772.cc index 4e5dde8ca..43f04302a 100644 --- a/src/aodv/test/bug-772.cc +++ b/src/aodv/test/bug-772.cc @@ -134,9 +134,7 @@ Bug772ChainTest::CreateDevices () // 3. Setup UDP source and sink uint16_t port = 9; // Discard port (RFC 863) OnOffHelper onoff (m_proto, Address (InetSocketAddress (interfaces.GetAddress (m_size-1), port))); - onoff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1.0]")); - onoff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.0]")); - onoff.SetAttribute ("DataRate", DataRateValue (DataRate (64000))); + onoff.SetConstantRate (DataRate (64000)); onoff.SetAttribute ("PacketSize", UintegerValue (1200)); ApplicationContainer app = onoff.Install (m_nodes->Get (0)); app.Start (Seconds (1.0));