mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 15:17:47 +00:00
[mesh-forwarder] change GetForwardFramePriority() to return void (#4941)
This commit is contained in:
@@ -426,7 +426,7 @@ private:
|
||||
const Mac::Address &aMacDest,
|
||||
uint8_t & aPriority);
|
||||
otError GetFragmentPriority(Lowpan::FragmentHeader &aFragmentHeader, uint16_t aSrcRloc16, uint8_t &aPriority);
|
||||
otError GetForwardFramePriority(const uint8_t * aFrame,
|
||||
void GetForwardFramePriority(const uint8_t * aFrame,
|
||||
uint16_t aFrameLength,
|
||||
const Mac::Address &aMeshSource,
|
||||
const Mac::Address &aMeshDest,
|
||||
|
||||
@@ -658,7 +658,7 @@ void MeshForwarder::HandleMesh(uint8_t * aFrame,
|
||||
|
||||
meshHeader.DecrementHopsLeft();
|
||||
|
||||
IgnoreError(GetForwardFramePriority(aFrame, aFrameLength, meshSource, meshDest, priority));
|
||||
GetForwardFramePriority(aFrame, aFrameLength, meshSource, meshDest, priority);
|
||||
message = Get<MessagePool>().New(Message::kType6lowpan, priority);
|
||||
VerifyOrExit(message != NULL, error = OT_ERROR_NO_BUFS);
|
||||
|
||||
@@ -842,11 +842,11 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
otError MeshForwarder::GetForwardFramePriority(const uint8_t * aFrame,
|
||||
uint16_t aFrameLength,
|
||||
const Mac::Address &aMeshSource,
|
||||
const Mac::Address &aMeshDest,
|
||||
uint8_t & aPriority)
|
||||
void MeshForwarder::GetForwardFramePriority(const uint8_t * aFrame,
|
||||
uint16_t aFrameLength,
|
||||
const Mac::Address &aMeshSource,
|
||||
const Mac::Address &aMeshDest,
|
||||
uint8_t & aPriority)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
bool isFragment = false;
|
||||
@@ -881,7 +881,7 @@ exit:
|
||||
UpdateFragmentPriority(fragmentHeader, aFrameLength, aMeshSource.GetShort(), aPriority);
|
||||
}
|
||||
|
||||
return error;
|
||||
return;
|
||||
}
|
||||
|
||||
otError MeshForwarder::GetDestinationRlocByServiceAloc(uint16_t aServiceAloc, uint16_t &aMeshDest)
|
||||
|
||||
Reference in New Issue
Block a user