mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 11:17:46 +00:00
[message] change GetDirectTransmission() to IsDirectTransmission() (#7510)
This commit is contained in:
@@ -980,7 +980,7 @@ public:
|
||||
* @retval FALSE If message forwarding is not scheduled for direct transmission.
|
||||
*
|
||||
*/
|
||||
bool GetDirectTransmission(void) const { return GetMetadata().mDirectTx; }
|
||||
bool IsDirectTransmission(void) const { return GetMetadata().mDirectTx; }
|
||||
|
||||
/**
|
||||
* This method unschedules forwarding using direct transmission.
|
||||
|
||||
@@ -267,7 +267,7 @@ Message *MeshForwarder::PrepareNextDirectTransmission(void)
|
||||
|
||||
for (curMessage = mSendQueue.GetHead(); curMessage; curMessage = nextMessage)
|
||||
{
|
||||
if (!curMessage->GetDirectTransmission())
|
||||
if (!curMessage->IsDirectTransmission())
|
||||
{
|
||||
nextMessage = curMessage->GetNext();
|
||||
continue;
|
||||
@@ -1017,7 +1017,7 @@ void MeshForwarder::UpdateSendMessage(Error aFrameTxError, Mac::Address &aMacDes
|
||||
|
||||
VerifyOrExit(mSendMessage != nullptr);
|
||||
|
||||
OT_ASSERT(mSendMessage->GetDirectTransmission());
|
||||
OT_ASSERT(mSendMessage->IsDirectTransmission());
|
||||
|
||||
if (aFrameTxError != kErrorNone)
|
||||
{
|
||||
@@ -1120,7 +1120,7 @@ exit:
|
||||
|
||||
void MeshForwarder::RemoveMessageIfNoPendingTx(Message &aMessage)
|
||||
{
|
||||
VerifyOrExit(!aMessage.GetDirectTransmission() && !aMessage.IsChildPending());
|
||||
VerifyOrExit(!aMessage.IsDirectTransmission() && !aMessage.IsChildPending());
|
||||
|
||||
if (mSendMessage == &aMessage)
|
||||
{
|
||||
|
||||
@@ -103,7 +103,7 @@ Error MeshForwarder::SendMessage(Message &aMessage)
|
||||
}
|
||||
}
|
||||
else if ((neighbor = Get<NeighborTable>().FindNeighbor(ip6Header.GetDestination())) != nullptr &&
|
||||
!neighbor->IsRxOnWhenIdle() && !aMessage.GetDirectTransmission())
|
||||
!neighbor->IsRxOnWhenIdle() && !aMessage.IsDirectTransmission())
|
||||
{
|
||||
// destined for a sleepy child
|
||||
Child &child = *static_cast<Child *>(neighbor);
|
||||
|
||||
Reference in New Issue
Block a user