Fix bug 362; cancel WaitReplyTimer when ArpCache is flushed

This commit is contained in:
Tom Henderson committed 2008-10-30 22:04:12 -07:00
1 parent eae689e01f
commit 2a487f8202
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -232,6 +232,11 @@ ArpCache::Flush (void)
delete (*i).second;
}
m_arpCache.erase (m_arpCache.begin (), m_arpCache.end ());
if (m_waitReplyTimer.IsRunning ())
{
NS_LOG_LOGIC ("Stopping WaitReplyTimer at " << Simulator::Now ().GetSeconds () << " due to ArpCache flush");
m_waitReplyTimer.Cancel ();
}
}
ArpCache::Entry *