src/internet-stack/arp-cache.cc
changeset 3823 761f94afe2a2
parent 3499 a18520551cdf
child 4084 dd514b5e0bc6
equal deleted inserted replaced
3822:9a246859e808 3823:761f94afe2a2
   230   for (CacheI i = m_arpCache.begin (); i != m_arpCache.end (); i++) 
   230   for (CacheI i = m_arpCache.begin (); i != m_arpCache.end (); i++) 
   231     {
   231     {
   232       delete (*i).second;
   232       delete (*i).second;
   233     }
   233     }
   234   m_arpCache.erase (m_arpCache.begin (), m_arpCache.end ());
   234   m_arpCache.erase (m_arpCache.begin (), m_arpCache.end ());
       
   235   if (m_waitReplyTimer.IsRunning ())
       
   236     {
       
   237       NS_LOG_LOGIC ("Stopping WaitReplyTimer at " << Simulator::Now ().GetSeconds () << " due to ArpCache flush");
       
   238       m_waitReplyTimer.Cancel ();
       
   239     }
   235 }
   240 }
   236 
   241 
   237 ArpCache::Entry *
   242 ArpCache::Entry *
   238 ArpCache::Lookup (Ipv4Address to)
   243 ArpCache::Lookup (Ipv4Address to)
   239 {
   244 {