From 51b110bf68cc69e83e6e248fbb5f9fbb724c624b Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Sat, 27 Jun 2020 19:06:14 +0200 Subject: [PATCH] fixup: address of pinged remote --- examples/leo-example.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/leo-example.cc b/examples/leo-example.cc index 5ae5719..7b2bb02 100644 --- a/examples/leo-example.cc +++ b/examples/leo-example.cc @@ -54,11 +54,14 @@ main (int argc, char *argv[]) UdpEchoServerHelper echoServer (9); ApplicationContainer serverApps = echoServer.Install (terminals); + // TODO routing + // install a client on each of the terminals ApplicationContainer clientApps; for (uint32_t i = 1; i < terminals.GetN (); i++) { - UdpEchoClientHelper echoClient (terminals.Get (i)->GetDevice (0)->GetAddress (), 9); + Address remote = terminals.Get (i)->GetObject ()->GetAddress (0, 0).GetAddress (); + UdpEchoClientHelper echoClient (remote, 9); echoClient.SetAttribute ("MaxPackets", UintegerValue (10)); echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0))); echoClient.SetAttribute ("PacketSize", UintegerValue (1024));