Ip6: Add the LinkSecurityMode info in the copied datagram message passed to host (#494)

This commit is contained in:
Abtin Keshavarzian
2016-08-30 15:53:03 -07:00
committed by Jonathan Hui
parent 0066be4c18
commit fe3eaffccd
+1
View File
@@ -382,6 +382,7 @@ void Ip6::ProcessReceiveCallback(const Message &aMessage, const MessageInfo &mes
VerifyOrExit((messageCopy = NewMessage(0)) != NULL, error = kThreadError_NoBufs);
SuccessOrExit(error = messageCopy->SetLength(aMessage.GetLength()));
aMessage.CopyTo(0, 0, aMessage.GetLength(), *messageCopy);
messageCopy->SetLinkSecurityEnabled(aMessage.IsLinkSecurityEnabled());
sReceiveIp6DatagramCallback(messageCopy, sReceiveIp6DatagramCallbackContext);