fix for bug 468

This commit is contained in:
Tom Henderson committed 2009-02-18 20:57:33 -08:00
1 parent 34c7ac0277
commit d2d4e0bfc8
2 files changed
+1 -28

No files matched your search

+1 -14
View File
@@ -185,7 +185,7 @@ ArpCache::HandleWaitReplyTimeout (void)
for (CacheI i = m_arpCache.begin (); i != m_arpCache.end (); i++)
{
entry = (*i).second;
if (entry != 0 && entry->IsWaitReply () && entry->IsExpiring () )
if (entry != 0 && entry->IsWaitReply ())
{
if (entry->GetRetries () < m_maxRetries)
{
@@ -374,19 +374,6 @@ ArpCache::Entry::GetTimeout (void) const
/* NOTREACHED */
}
}
bool
ArpCache::Entry::IsExpiring (void) const
{
NS_LOG_FUNCTION_NOARGS ();
Time timeout = GetTimeout ();
Time delta = Simulator::Now () - m_lastSeen;
NS_LOG_DEBUG ("delta=" << delta.GetSeconds () << "s");
if (delta >= timeout)
{
return true;
}
return false;
}
bool
ArpCache::Entry::IsExpired (void) const
{