--- aodv-routing-protocol.cc 2016-07-14 17:15:45.269042000 +0200 +++ aodv-routing-protocol.cc 2016-07-14 17:22:37.265049776 +0200 @@ -367,6 +367,18 @@ } UpdateRouteLifeTime (dst, ActiveRouteTimeout); UpdateRouteLifeTime (route->GetGateway (), ActiveRouteTimeout); + if (dst.IsBroadcast () == false) + { + for (std::map, Ipv4InterfaceAddress>::const_iterator j = + m_socketAddresses.begin (); j != m_socketAddresses.end (); ++j) + { + Ipv4InterfaceAddress iface = j->second; + if (dst != iface.GetBroadcast ()) + { + m_nb.Update (route->GetGateway (), ActiveRouteTimeout); + } + } + } return route; }