Skip to content

Commit

Permalink
internet: add some LOG statements to ndisc cache lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyPec committed Nov 23, 2017
1 parent 3226f05 commit f75fced
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/internet/model/ndisc-cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ NdiscCache::Entry* NdiscCache::Lookup (Ipv6Address dst)
if (m_ndCache.find (dst) != m_ndCache.end ())
{
NdiscCache::Entry* entry = m_ndCache[dst];
NS_LOG_LOGIC ("Found an entry:" << dst << " to " << entry->GetMacAddress ());
return entry;
}
NS_LOG_LOGIC ("Nothing found");
return 0;
}

Expand All @@ -112,6 +114,7 @@ std::list<NdiscCache::Entry*> NdiscCache::LookupInverse (Address dst)
NdiscCache::Entry *entry = (*i).second;
if (entry->GetMacAddress () == dst)
{
NS_LOG_LOGIC ("Found an entry:" << (*i).first << " to " << (*i).second);
entryList.push_back (entry);
}
}
Expand Down

0 comments on commit f75fced

Please sign in to comment.