Broadcast timer bugfix
authorKirill Andreev <andreev@iitp.ru>
Fri, 19 Jun 2009 14:13:35 +0400
changeset 5094 b98a7a92f020
parent 5093 2dc19210c693
child 5095 9ee59991bbef
Broadcast timer bugfix
src/devices/mesh/flame/flame-protocol.cc
--- a/src/devices/mesh/flame/flame-protocol.cc	Fri Jun 19 12:58:35 2009 +0400
+++ b/src/devices/mesh/flame/flame-protocol.cc	Fri Jun 19 14:13:35 2009 +0400
@@ -142,7 +142,9 @@
       NS_FATAL_ERROR ("FLAME tag is not supposed to be received from upper layers");
     }
     FlameRtable::LookupResult result = m_rtable->Lookup(destination);
-    if(m_lastBroadcast + m_broadcastInterval < Simulator::Now ())
+    if (result.retransmitter == Mac48Address::GetBroadcast ())
+      m_lastBroadcast = Simulator::Now ();
+    if (m_lastBroadcast + m_broadcastInterval < Simulator::Now ())
     {
       result.retransmitter = Mac48Address::GetBroadcast ();
       result.ifIndex = FlameRtable::INTERFACE_ANY;