diff -r d14e2430213d src/aodv/model/aodv-routing-protocol.cc --- a/src/aodv/model/aodv-routing-protocol.cc Fri Aug 31 12:24:28 2012 +0200 +++ b/src/aodv/model/aodv-routing-protocol.cc Wed Sep 05 08:29:19 2012 -0700 @@ -315,6 +315,8 @@ NS_LOG_FUNCTION (this); if (EnableHello) { + m_htimer.SetFunction (&RoutingProtocol::HelloTimerExpire, this); + m_htimer.Schedule (MilliSeconds (m_uniformRandomVariable->GetInteger (0, 100))); m_nb.ScheduleTimer (); } m_rreqRateLimitTimer.SetFunction (&RoutingProtocol::RreqRateLimitTimerExpire, @@ -579,12 +581,6 @@ NS_ASSERT (ipv4 != 0); NS_ASSERT (m_ipv4 == 0); - if (EnableHello) - { - m_htimer.SetFunction (&RoutingProtocol::HelloTimerExpire, this); - m_htimer.Schedule (MilliSeconds (m_uniformRandomVariable->GetInteger (0, 100))); - } - m_ipv4 = ipv4;