View | Details | Raw Unified | Return to bug 2145
Collapse All | Expand All

(-)a/src/aodv/model/aodv-neighbor.cc (-1 / +1 lines)
 Lines 149-155   Neighbors::LookupMacAddress (Ipv4Address addr) Link Here 
149
       i != m_arp.end (); ++i)
149
       i != m_arp.end (); ++i)
150
    {
150
    {
151
      ArpCache::Entry * entry = (*i)->Lookup (addr);
151
      ArpCache::Entry * entry = (*i)->Lookup (addr);
152
      if (entry != 0 && entry->IsAlive () && !entry->IsExpired ())
152
      if (entry != 0 && (entry->IsAlive () || entry->IsPermanent ()) && !entry->IsExpired ())
153
        {
153
        {
154
          hwaddr = Mac48Address::ConvertFrom (entry->GetMacAddress ());
154
          hwaddr = Mac48Address::ConvertFrom (entry->GetMacAddress ());
155
          break;
155
          break;
(-)a/src/dsr/model/dsr-rcache.cc (-1 / +1 lines)
 Lines 1222-1228   RouteCache::LookupMacAddress (Ipv4Address addr) Link Here 
1222
       i != m_arp.end (); ++i)
1222
       i != m_arp.end (); ++i)
1223
    {
1223
    {
1224
      ArpCache::Entry * entry = (*i)->Lookup (addr);
1224
      ArpCache::Entry * entry = (*i)->Lookup (addr);
1225
      if (entry != 0 && entry->IsAlive () && !entry->IsExpired ())
1225
      if (entry != 0 && (entry->IsAlive () || entry->IsPermanent ()) && !entry->IsExpired ())
1226
        {
1226
        {
1227
          hwaddr = Mac48Address::ConvertFrom (entry->GetMacAddress ());
1227
          hwaddr = Mac48Address::ConvertFrom (entry->GetMacAddress ());
1228
          break;
1228
          break;

Return to bug 2145