mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 04:37:47 +00:00
Ip6: Add the LinkSecurityMode info in the copied datagram message passed to host (#494)
This commit is contained in:
committed by
Jonathan Hui
parent
0066be4c18
commit
fe3eaffccd
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user