[address-resolver] add log on new cache entry creation (#4540)

This commit is contained in:
ludu
2020-02-11 14:18:08 -08:00
committed by Jonathan Hui
parent d3bca730aa
commit f7136eba3e
+2 -1
View File
@@ -345,9 +345,10 @@ otError AddressResolver::AddCacheEntry(const Ip6::Address &aEid, Mac::ShortAddre
entry->mTimeout = 0;
entry->mFailures = 0;
entry->mState = Cache::kStateCached;
MoveCacheEntryBehindCached(*entry);
otLogNoteArp("Cache entry added (snoop): %s, 0x%04x", aEid.ToString().AsCString(), aRloc16);
exit:
return error;
}