![](https://groups.google.com/group/ns-3-users/attach/cd3e122950042/1%20(2).png?part=0.1&view=1)
Hi,
Tommaso,it has the same duplicate in the lena-x2-handover.cc too.Thanks.
I use the example of lena-x2-handover-measure.cc and add a wifi ap netdevice in the ue node,and it's connect by three stations ,i try to route one of the three stas to the remotehost as the ue route to the remotehost,and i use UdpEchoApplication between one sta and the remotehost,but the console only shows like the picture,has no echos,only sends data.
It seems that the sta has a uncorrectly route.what should i do to route correctly.
Could you give me a guide?
Thanks,
Regards,
Hongyu,
The code like such:
Ptr<Ipv4StaticRouting> Sta2UeStaticRouting = ipv4RoutingHelper.GetStaticRouting (wifiStaNodes.Get (nWifi - 1)->GetObject<Ipv4> ());
Sta2UeStaticRouting->AddNetworkRouteTo (remoteHostAddr, Ipv4Mask ("255.0.0.0"), 1);
UdpEchoServerHelper echoServer (9);
ApplicationContainer serverApps = echoServer.Install (ueNodes.Get (0));//(remoteHost);//
serverApps.Start (Seconds (1.0));
serverApps.Stop (Seconds (simTime));
UdpEchoClientHelper echoClient (remoteHostAddr, 9); //add by deng
echoClient.SetAttribute ("MaxPackets", UintegerValue (10));
echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0)));
echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
ApplicationContainer clientApps = echoClient.Install (wifiStaNodes.Get (nWifi - 1));//.Get (nWifi - 1));
clientApps.Start (Seconds (2.0));
clientApps.Stop (Seconds (simTime));