update OnOffHelper usage for one more test suite

This commit is contained in:
Tom Henderson
2012-08-24 11:34:13 -07:00
parent bd2778169a
commit c8201a534a

View File

@@ -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));