/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
H A D | dgram_socket_server.cpp | 24 uint16_t packetLen = 0; in RecvPacket() local 25 if (auto status = Recv(&packetLen, sizeof(packetLen)); status < 0) { in RecvPacket() 28 if (packetLen > maxPacketLength) { in RecvPacket() 29 Recv(&packetLen, sizeof(packetLen), 0); // skip too long packet in RecvPacket() 40 iov.iov_len = packetLen; in RecvPacket() 53 ret = Recv(buffer.data(), packetLen, 0); in RecvPacket()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | clatd.cpp | 164 int32_t Clatd::MaybeCalculateL4Checksum(int packetLen, ClatdReadV6Buf &readBuf) in MaybeCalculateL4Checksum() argument 168 if (csumOffset > packetLen) { in MaybeCalculateL4Checksum() 169 …TNATIVE_LOGW("csum offset %{public}d larger than packet length %{public}d", csumOffset, packetLen); in MaybeCalculateL4Checksum() 172 uint16_t csum = CalChecksum(readBuf.payload, packetLen); // L4 checksum calculation required in MaybeCalculateL4Checksum() 216 int packetLen = readLen - offsetof(ClatdReadV6Buf, payload); in ProcessV6Packet() local 223 … ClatdPacketConverter converter = ClatdPacketConverter(readBuf.payload + tpNet, packetLen - tpNet, in ProcessV6Packet() 250 const int packetLen = readLen - payloadOffset; in ProcessV4Packet() local 263 …ClatdPacketConverter(readBuf.payload, packetLen, CONVERT_FROM_V4_TO_V6, v4Addr_, v6Addr_, prefixAd… in ProcessV4Packet()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | header_converter.cpp | 25 headerConverted.packetLen = HostToNet(headerOriginal.packetLen); in ConvertHostToNet()
|
H A D | protocol_proto.cpp | 433 void FillPhyHeaderLenInfo(uint32_t packetLen, uint64_t sum, uint8_t type, uint8_t paddingLen, CommP… in FillPhyHeaderLenInfo() argument 435 header.packetLen = packetLen; in FillPhyHeaderLenInfo() 454 uint32_t packetLen = bufferByteLen.second; in SetPhyHeader() local 471 …FillPhyHeaderLenInfo(packetLen, 0, packetType, paddingLen, phyHeader); // Sum is calculated afterw… in SetPhyHeader() 746 if (phyHeader.packetLen != length) { in ParseCommPhyHeaderCheckField() 747 …][ParsePhyCheck] PacketLen=%" PRIu32 " Mismatch length=%" PRIu32 ".", phyHeader.packetLen, length); in ParseCommPhyHeaderCheckField() 754 if (sizeof(CommPhyHeader) + phyHeader.paddingLen > phyHeader.packetLen) { in ParseCommPhyHeaderCheckField() 796 inResult.SetPacketLen(phyHeader.packetLen); in ParseCommPhyHeader()
|
H A D | frame_header.h | 32 uint32_t packetLen = 0; // Length of total packet, include CommHeader and Padding member
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_utils.cpp | 283 void GenerateAdtsHeader(unsigned char* adtsHeader, uint32_t packetLen, uint32_t profile, uint32_t s… in GenerateAdtsHeader() argument 321 …adtsHeader[arrThree] = (unsigned char) (((channels & calThree) << calSix) + (packetLen >> calEleve… in GenerateAdtsHeader() 322 adtsHeader[arrFour] = (unsigned char) ((packetLen & 0x7FF) >> calThree); in GenerateAdtsHeader() 323 adtsHeader[arrFive] = (unsigned char) (((packetLen & calSeven) << calFive) + 0x1F); in GenerateAdtsHeader()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/minimp4_demuxer/ |
H A D | minimp4_demuxer_plugin.cpp | 294 unsigned int packetLen = frameSize + 7; in FillADTSHead() local 302 …adtsHeader[3] = static_cast<uint8_t>(((channelConfig & 0x3) << 6) + (packetLen >> 11)); // 3,6,11 … in FillADTSHead() 303 adtsHeader[4] = static_cast<uint8_t>((packetLen & 0x7FF) >> 3); // 4, 3 按协议取信息帧 in FillADTSHead() 304 adtsHeader[5] = static_cast<uint8_t>(((packetLen & 0x7) << 5) + 0x1F); // 5 按协议取信息帧 in FillADTSHead()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_data_sync.cpp | 237 uint32_t packetLen) in Send() argument 240 if (packetLen > mtuSize_ && mtuSize_ > NOTIFY_MIN_MTU_SIZE) { in Send() 241 uint32_t time = static_cast<uint32_t>(static_cast<uint64_t>(packetLen) * in Send() 1050 uint32_t packetLen = packet->CalculateLen(SingleVerDataSyncUtils::GetMessageId(syncType)); in SendDataPacket() local 1069 errCode = Send(context, message, handler, packetLen); in SendDataPacket() 1107 SendResetWatchDogPacket(context, packetLen); in SendPullResponseDataPkt() 1108 errCode = Send(context, message, nullptr, packetLen); in SendPullResponseDataPkt() 1355 if (mtuSize_ >= packetLen || mtuSize_ < NOTIFY_MIN_MTU_SIZE) { in SendResetWatchDogPacket() 1461 errCode = Send(context, message, handler, packetLen); in SendReSendPacket() 1905 uint32_t packetLen = packet->CalculateLen(); in SendControlPacket() local [all …]
|
H A D | single_ver_data_sync.h | 157 uint32_t packetLen); 209 void SendResetWatchDogPacket(SingleVerSyncTaskContext *context, uint32_t packetLen);
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | clatd.h | 44 int32_t MaybeCalculateL4Checksum(int packetLen, ClatdReadV6Buf &readBuf);
|
/ohos5.0/drivers/peripheral/usb/ddk/host/src/ |
H A D | linux_adapter.c | 609 unsigned int packetLen = request->isoPacketDesc[packetIdx++].length; in OsAllocIsoUrbs() local 610 urb->bufferLength += (int32_t)packetLen; in OsAllocIsoUrbs() 611 urb->isoFrameDesc[j].length = packetLen; in OsAllocIsoUrbs() 672 unsigned int packetLen = request->isoPacketDesc[i].length; in OsSubmitIsoRequest() local 673 if (packetLen > MAX_ISO_DATA_BUFFER_LEN) { in OsSubmitIsoRequest() 675 __func__, __LINE__, packetLen, MAX_ISO_DATA_BUFFER_LEN); in OsSubmitIsoRequest() 678 totalLen += packetLen; in OsSubmitIsoRequest()
|
H A D | liteos_adapter.c | 735 unsigned int packetLen = request->isoPacketDesc[packetIdx++].length; in OsAllocIsoUrbs() local 736 urb->transfer_buffer_length += packetLen; in OsAllocIsoUrbs() 737 urb->iso_frame_desc[j].length = packetLen; in OsAllocIsoUrbs() 803 unsigned int packetLen = request->isoPacketDesc[i].length; in OsSubmitIsoRequest() local 804 if (packetLen > MAX_ISO_DATA_BUFFER_LEN) { in OsSubmitIsoRequest() 805 … DPRINTFN(0, "%s:%d packet length: %u exceeds maximum: %u\n", __func__, __LINE__, packetLen, in OsSubmitIsoRequest() 809 totalLen += packetLen; in OsSubmitIsoRequest()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/ |
H A D | av_trans_utils.h | 62 void GenerateAdtsHeader(unsigned char* adtsHeader, uint32_t packetLen, uint32_t profile, uint32_t s…
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_input/daudio_input_test/ |
H A D | daudio_input_test.cpp | 392 uint32_t packetLen = 1; variable 396 GenerateAdtsHeader(adtsHeader, packetLen, profile, sampleRate, channels); 399 GenerateAdtsHeader(adtsHeader, packetLen, profile, sampleRate, channels);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/communicator/ |
H A D | adapter_stub.cpp | 417 phyHeader->packetLen = HostToNet(packetLenField_); in ApplySendBitError()
|