Skip to content

Commit

Permalink
Remove unused devices and interface from dce-iperf example
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvabhargava committed Jun 10, 2018
1 parent e2ea6b7 commit 753117f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions example/dce-iperf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ int main (int argc, char *argv[])
pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps"));
pointToPoint.SetChannelAttribute ("Delay", StringValue ("1ms"));

NetDeviceContainer devices, devices2;
NetDeviceContainer devices;
devices = pointToPoint.Install (nodes);
devices2 = pointToPoint.Install (nodes);

DceManagerHelper dceManager;
dceManager.SetTaskManagerAttribute ("FiberManagerType", StringValue ("UcontextFiberManager"));
Expand Down Expand Up @@ -92,8 +91,6 @@ int main (int argc, char *argv[])
Ipv4AddressHelper address;
address.SetBase ("10.1.1.0", "255.255.255.252");
Ipv4InterfaceContainer interfaces = address.Assign (devices);
address.SetBase ("10.1.2.0", "255.255.255.252");
interfaces = address.Assign (devices2);

// setup ip routes
Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
Expand Down

0 comments on commit 753117f

Please # to comment.