aodv crash test changed to fail for 60 nodes in disc and 1 node 155 m apart from the disc
This commit is contained in:
@@ -161,7 +161,7 @@ AodvExample::CreateNodes ()
|
||||
mobility.Install (nodes);
|
||||
|
||||
Ptr<ListPositionAllocator> pos = CreateObject<ListPositionAllocator>();
|
||||
pos->Add(Vector(150.0 + radius, 0.0, 0.0));
|
||||
pos->Add(Vector(155.0 + radius, 0.0, 0.0));
|
||||
mobility.SetPositionAllocator(pos);
|
||||
mobility.Install (node1);
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@ RoutingProtocol::RouteOutput (Ptr<Packet> p, const Ipv4Header &header, uint32_t
|
||||
m_queue.Enqueue (newEntry);
|
||||
sockerr = Socket::ERROR_NOROUTETOHOST;
|
||||
if (rt.GetFlag() == RTF_DOWN) SendRequest (dst, false, true, rt.GetHop() + TTL_INCREMENT);
|
||||
else if(rt.GetFlag() != RTF_IN_SEARCH) SendRequest (dst, false, true, NET_DIAMETER);
|
||||
else if(rt.GetFlag() != RTF_IN_SEARCH) SendRequest (dst, false, true, TTL_START);
|
||||
return route;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user