[ip6] log encapsulated IPv6 messages (#7178)

When an encapsulated IPv6 header is found, log the message.
This commit is contained in:
Eduardo Montoya
2021-11-19 10:01:48 -08:00
committed by GitHub
parent 43778e314d
commit ed5e5bbb6d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1213,6 +1213,7 @@ start:
{
// Remove encapsulating header and start over.
aMessage.RemoveHeader(aMessage.GetOffset());
Get<MeshForwarder>().LogMessage(MeshForwarder::kMessageReceive, aMessage, nullptr, kErrorNone);
goto start;
}
+1
View File
@@ -157,6 +157,7 @@ class MeshForwarder : public InstanceLocator, private NonCopyable
friend class Instance;
friend class DataPollSender;
friend class IndirectSender;
friend class Ip6::Ip6;
friend class Mle::DiscoverScanner;
friend class TimeTicker;
friend class Utils::HistoryTracker;