diff --git a/RELEASE_NOTES b/RELEASE_NOTES index cfb531959..184030994 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -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 ------------ diff --git a/src/aodv/model/aodv-routing-protocol.cc b/src/aodv/model/aodv-routing-protocol.cc index bb23f4c72..d354b43cb 100644 --- a/src/aodv/model/aodv-routing-protocol.cc +++ b/src/aodv/model/aodv-routing-protocol.cc @@ -1116,6 +1116,8 @@ RoutingProtocol::RecvRequest (Ptr 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)