OLSR: HELLO messages hold time should be 3 times hello interval, not hello interval.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 28 Jul 2008 16:06:46 +0100
changeset 3487 6f68f1044df1
parent 3486 818a6bbef490
child 3488 517acaf61a69
OLSR: HELLO messages hold time should be 3 times hello interval, not hello interval.
src/routing/olsr/olsr-agent-impl.cc
--- a/src/routing/olsr/olsr-agent-impl.cc	Sat Jul 26 15:23:41 2008 +0100
+++ b/src/routing/olsr/olsr-agent-impl.cc	Mon Jul 28 16:06:46 2008 +0100
@@ -1388,7 +1388,7 @@
   msg.SetMessageSequenceNumber (GetMessageSequenceNumber ());
   olsr::MessageHeader::Hello &hello = msg.GetHello ();
 
-  hello.SetHTime (m_helloInterval);
+  hello.SetHTime (Scalar (3) * m_helloInterval);
   hello.willingness = m_willingness;
 
   std::vector<olsr::MessageHeader::Hello::LinkMessage>