From f75fced7ccdc59bbd8dd66b8b1abb79c362ba3b4 Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Thu, 23 Nov 2017 22:34:34 +0100 Subject: [PATCH] internet: add some LOG statements to ndisc cache lookups --- src/internet/model/ndisc-cache.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internet/model/ndisc-cache.cc b/src/internet/model/ndisc-cache.cc index efff7c16f..ebf189791 100644 --- a/src/internet/model/ndisc-cache.cc +++ b/src/internet/model/ndisc-cache.cc @@ -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; } @@ -112,6 +114,7 @@ std::list 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); } }