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