Bug 1951 - AODV does not update nexthop for 1-hop nodes

This commit is contained in:
Roman Naumann
2014-07-20 10:13:02 +02:00
parent f8bb25d058
commit f0d6341ddf
2 changed files with 5 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ Bugs fixed
- Bug 1932 - NdiscCache entry is not failsafe on double neighbor probing.
- Bug 1937 - FlowMonitor fails to track multiplexed packets
- Bug 1943 - Waveform generator signal duration calc error
- Bug 1951 - AODV does not update nexthop for 1-hop nodes
Known issues
------------

View File

@@ -1116,6 +1116,8 @@ RoutingProtocol::RecvRequest (Ptr<Packet> p, Ipv4Address receiver, Ipv4Address s
toNeighbor.SetFlag (VALID);
toNeighbor.SetOutputDevice (m_ipv4->GetNetDevice (m_ipv4->GetInterfaceForAddress (receiver)));
toNeighbor.SetInterface (m_ipv4->GetAddress (m_ipv4->GetInterfaceForAddress (receiver), 0));
toNeighbor.SetHop (1);
toNeighbor.SetNextHop (src);
m_routingTable.Update (toNeighbor);
}
m_nb.Update (src, Time (AllowedHelloLoss * HelloInterval));
@@ -1444,6 +1446,8 @@ RoutingProtocol::ProcessHello (RrepHeader const & rrepHeader, Ipv4Address receiv
toNeighbor.SetFlag (VALID);
toNeighbor.SetOutputDevice (m_ipv4->GetNetDevice (m_ipv4->GetInterfaceForAddress (receiver)));
toNeighbor.SetInterface (m_ipv4->GetAddress (m_ipv4->GetInterfaceForAddress (receiver), 0));
toNeighbor.SetHop (1);
toNeighbor.SetNextHop (rrepHeader.GetDst ());
m_routingTable.Update (toNeighbor);
}
if (EnableHello)