View | Details | Raw Unified | Return to bug 2856
Collapse All | Expand All

(-)a/src/netanim/examples/dumbbell-animation.cc (-1 / +1 lines)
 Lines 78-84    Link Here 
78
  clientHelper.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable"));
78
  clientHelper.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable"));
79
  ApplicationContainer clientApps;
79
  ApplicationContainer clientApps;
80
80
81
  for (uint32_t i = 0; i < d.RightCount (); ++i)
81
  for (uint32_t i = 0; i < ((d.RightCount () < d.LeftCount ()) ? d.RightCount () : d.LeftCount ()); ++i)
82
    {
82
    {
83
      // Create an on/off app sending packets to the same leaf right side
83
      // Create an on/off app sending packets to the same leaf right side
84
      AddressValue remoteAddress (InetSocketAddress (d.GetLeftIpv4Address (i), 1000));
84
      AddressValue remoteAddress (InetSocketAddress (d.GetLeftIpv4Address (i), 1000));

Return to bug 2856