Lines Matching refs:payloadFragment
616 uint16_t payloadFragment = 0; in FragmentDatagram() local
637 payloadFragment = payloadLeft; in FragmentDatagram()
645 payloadFragment = maxPayloadFragment; in FragmentDatagram()
652 …Exit(error = fragment->SetLength(aMessage.GetOffset() + sizeof(fragmentHeader) + payloadFragment)); in FragmentDatagram()
654 header.SetPayloadLength(payloadFragment + sizeof(fragmentHeader)); in FragmentDatagram()
661 aMessage.GetOffset() + sizeof(fragmentHeader), payloadFragment, in FragmentDatagram()
662 *fragment) == static_cast<int>(payloadFragment), in FragmentDatagram()
670 otLogInfoIp6("Fragment %d with %d bytes sent", fragmentCnt, payloadFragment); in FragmentDatagram()
693 uint16_t payloadFragment = 0; in HandleFragment() local
721 payloadFragment = aMessage.GetLength() - aMessage.GetOffset() - sizeof(fragmentHeader); in HandleFragment()
724 payloadFragment, offset); in HandleFragment()
726 if (offset + payloadFragment + aMessage.GetOffset() > kMaxAssembledDatagramLength) in HandleFragment()
751 if (message->GetLength() < offset + payloadFragment + aMessage.GetOffset()) in HandleFragment()
753 SuccessOrExit(error = message->SetLength(offset + payloadFragment + aMessage.GetOffset())); in HandleFragment()
758 payloadFragment, *message); in HandleFragment()
759 OT_ASSERT(assertValue == static_cast<int>(payloadFragment)); in HandleFragment()
765 message->SetOffset(aMessage.GetOffset() + offset + payloadFragment); in HandleFragment()