Skip to content

Commit

Permalink
Remove unused interface object
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvabhargava committed Jun 7, 2018
1 parent faaead2 commit e2ea6b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion example/dce-iperf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ int main (int argc, char *argv[])

DceApplicationHelper dce;
ApplicationContainer apps;
std::ostringstream serverIp;

dce.SetStackSize (1 << 20);

Expand All @@ -115,7 +116,13 @@ int main (int argc, char *argv[])
dce.ResetArguments ();
dce.ResetEnvironment ();
dce.AddArgument ("-c");
dce.AddArgument ("10.1.1.2");

// Extract server IP address
Ptr<Ipv4> ipv4Server = nodes.Get (1)->GetObject<Ipv4> ();
Ipv4Address serverAddress = ipv4Server->GetAddress (1, 0).GetLocal ();
serverAddress.Print (serverIp);

dce.AddArgument (serverIp.str());
dce.AddArgument ("-i");
dce.AddArgument ("1");
dce.AddArgument ("--time");
Expand Down

0 comments on commit e2ea6b7

Please # to comment.