update OnOffHelper usage for one more test suite
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user