Update AODV and DSR for static ARP support

This commit is contained in:
Saswat Mishra
2015-09-06 22:58:26 -07:00
parent 081b99da00
commit b1d413cb3a
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ Neighbors::LookupMacAddress (Ipv4Address addr)
i != m_arp.end (); ++i)
{
ArpCache::Entry * entry = (*i)->Lookup (addr);
if (entry != 0 && entry->IsAlive () && !entry->IsExpired ())
if (entry != 0 && (entry->IsAlive () || entry->IsPermanent ()) && !entry->IsExpired ())
{
hwaddr = Mac48Address::ConvertFrom (entry->GetMacAddress ());
break;

View File

@@ -1222,7 +1222,7 @@ RouteCache::LookupMacAddress (Ipv4Address addr)
i != m_arp.end (); ++i)
{
ArpCache::Entry * entry = (*i)->Lookup (addr);
if (entry != 0 && entry->IsAlive () && !entry->IsExpired ())
if (entry != 0 && (entry->IsAlive () || entry->IsPermanent ()) && !entry->IsExpired ())
{
hwaddr = Mac48Address::ConvertFrom (entry->GetMacAddress ());
break;