Update AODV and DSR for static ARP support
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user