Searched refs:fragmentHeader (Results 1 – 3 of 3) sorted by relevance
/openthread-3.4.0/src/core/net/ |
D | ip6.cpp | 563 FragmentHeader fragmentHeader; in FragmentDatagram() local 570 … FragmentHeader::MakeDivisibleByEight(kMinimalMtu - aMessage.GetOffset() - sizeof(fragmentHeader)); in FragmentDatagram() 576 fragmentHeader.Init(); in FragmentDatagram() 577 fragmentHeader.SetIdentification(Random::NonCrypto::GetUint32()); in FragmentDatagram() 578 fragmentHeader.SetNextHeader(aIpProto); in FragmentDatagram() 579 fragmentHeader.SetMoreFlag(); in FragmentDatagram() 585 fragmentHeader.ClearMoreFlag(); in FragmentDatagram() 599 fragmentHeader.SetOffset(offset); in FragmentDatagram() 603 …SuccessOrExit(error = fragment->SetLength(aMessage.GetOffset() + sizeof(fragmentHeader) + payloadF… in FragmentDatagram() 605 header.SetPayloadLength(payloadFragment + sizeof(fragmentHeader)); in FragmentDatagram() [all …]
|
/openthread-3.4.0/src/core/thread/ |
D | mesh_forwarder.cpp | 291 Lowpan::FragmentHeader fragmentHeader; in UpdateEcnOrDrop() local 298 if (fragmentHeader.ParseFrom(aMessage, offset, headerLength) == kErrorNone) in UpdateEcnOrDrop() 304 if (!hasFragmentHeader || (fragmentHeader.GetDatagramOffset() == 0)) in UpdateEcnOrDrop() 314 … entry = mFragmentPriorityList.FindEntry(meshHeader.GetSource(), fragmentHeader.GetDatagramTag()); in UpdateEcnOrDrop() 345 … entry = mFragmentPriorityList.FindEntry(meshHeader.GetSource(), fragmentHeader.GetDatagramTag()); in UpdateEcnOrDrop() 355 … if (aPreparingToSend && (fragmentHeader.GetDatagramOffset() + aMessage.GetLength() - offset >= in UpdateEcnOrDrop() 356 fragmentHeader.GetDatagramSize())) in UpdateEcnOrDrop() 1350 Lowpan::FragmentHeader fragmentHeader; in HandleFragment() local 1353 SuccessOrExit(error = fragmentHeader.ParseFrom(aFrameData)); in HandleFragment() 1363 uint16_t tag = fragmentHeader.GetDatagramTag(); in HandleFragment() [all …]
|
D | mesh_forwarder_ftd.cpp | 891 Lowpan::FragmentHeader fragmentHeader; in GetForwardFramePriority() local 893 if (fragmentHeader.ParseFrom(frameData) == kErrorNone) in GetForwardFramePriority() 897 if (fragmentHeader.GetDatagramOffset() > 0) in GetForwardFramePriority() 900 … ExitNow(error = GetFragmentPriority(fragmentHeader, aMeshAddrs.mSource.GetShort(), aPriority)); in GetForwardFramePriority() 916 …UpdateFragmentPriority(fragmentHeader, frameData.GetLength(), aMeshAddrs.mSource.GetShort(), aPrio… in GetForwardFramePriority() 936 Lowpan::FragmentHeader fragmentHeader; in LogMeshFragmentHeader() local 948 if (fragmentHeader.ParseFrom(aMessage, aOffset, headerLength) == kErrorNone) in LogMeshFragmentHeader() 974 LogAt(aLogLevel, " Frag tag:%04x, offset:%d, size:%d", fragmentHeader.GetDatagramTag(), in LogMeshFragmentHeader() 975 fragmentHeader.GetDatagramOffset(), fragmentHeader.GetDatagramSize()); in LogMeshFragmentHeader() 977 VerifyOrExit(fragmentHeader.GetDatagramOffset() == 0); in LogMeshFragmentHeader()
|