mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 07:07:47 +00:00
[message] allocate message with corresponding component (#3403)
This commit is contained in:
@@ -211,7 +211,7 @@ otMessage *otIp6NewMessage(otInstance *aInstance, const otMessageSettings *aSett
|
||||
VerifyOrExit(aSettings->mPriority <= OT_MESSAGE_PRIORITY_HIGH, message = NULL);
|
||||
}
|
||||
|
||||
message = instance.GetMessagePool().New(Message::kTypeIp6, 0, aSettings);
|
||||
message = instance.GetIp6().NewMessage(0, aSettings);
|
||||
|
||||
exit:
|
||||
return message;
|
||||
|
||||
@@ -50,7 +50,7 @@ otMessage *otUdpNewMessage(otInstance *aInstance, const otMessageSettings *aSett
|
||||
VerifyOrExit(aSettings->mPriority <= OT_MESSAGE_PRIORITY_HIGH, message = NULL);
|
||||
}
|
||||
|
||||
message = instance.GetMessagePool().New(Message::kTypeIp6, 0, aSettings);
|
||||
message = instance.GetIp6().GetUdp().NewMessage(0, aSettings);
|
||||
|
||||
exit:
|
||||
return message;
|
||||
|
||||
Reference in New Issue
Block a user