[mesh-forwarder] add log to RemoveMessage() (#2198)

This commit is contained in:
Jonathan Hui
2017-09-15 10:46:00 -07:00
committed by GitHub
parent 419dade175
commit 908d7dae83
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -284,6 +284,7 @@ void MeshForwarder::RemoveMessage(Message &aMessage)
}
mSendQueue.Dequeue(aMessage);
LogIp6Message(kMessageEvict, aMessage, NULL, OT_ERROR_NO_BUFS);
aMessage.Free();
}
@@ -2437,6 +2438,10 @@ void MeshForwarder::LogIp6Message(MessageAction aAction, const Message &aMessage
actionText = "Dropping (reassembly timeout)";
break;
case kMessageEvict:
actionText = "Evicting";
break;
default:
actionText = "";
break;
+1
View File
@@ -260,6 +260,7 @@ private:
kMessagePrepareIndirect, ///< Indicates that the message is being prepared for indirect tx.
kMessageDrop, ///< Indicates that the outbound message is being dropped (e.g., dst unknown).
kMessageReassemblyDrop, ///< Indicates that the message is being dropped from reassembly list.
kMessageEvict, ///< Indicates that the message was evicted.
};
otError CheckReachability(uint8_t *aFrame, uint8_t aFrameLength,