/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 NETNATIVE_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_, prefixAddr_); in ProcessV4Packet()
|
/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 | frame_header.h | 32 uint32_t packetLen = 0; // Length of total packet, include CommHeader and Padding member
|
H A D | protocol_proto.cpp | 433 void FillPhyHeaderLenInfo(uint32_t packetLen, uint64_t sum, uint8_t type, uint8_t paddingLen, CommPhyHeader &header) 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 afterwards in SetPhyHeader() 746 if (phyHeader.packetLen != length) { in ParseCommPhyHeaderCheckField() 747 LOGE("[Proto][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()
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | clatd.h | 44 int32_t MaybeCalculateL4Checksum(int packetLen, ClatdReadV6Buf &readBuf);
|
/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()
|
/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 sampleRate,
in GenerateAdtsHeader() argument 321 adtsHeader[arrThree] = (unsigned char) (((channels & calThree) << calSix) + (packetLen >> calEleven));
in GenerateAdtsHeader() 322 adtsHeader[arrFour] = (unsigned char) ((packetLen & 0x7FF) >> calThree);
in GenerateAdtsHeader() 323 adtsHeader[arrFive] = (unsigned char) (((packetLen & calSeven) << calFive) + 0x1F);
in GenerateAdtsHeader()
|
/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 sampleRate,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_data_sync.h | 162 uint32_t packetLen); 209 void SendResetWatchDogPacket(SingleVerSyncTaskContext *context, uint32_t packetLen);
|
H A D | single_ver_data_sync.cpp | 238 uint32_t packetLen) in Send() 241 if (packetLen > mtuSize_ && mtuSize_ > NOTIFY_MIN_MTU_SIZE) { in Send() 242 uint32_t time = static_cast<uint32_t>(static_cast<uint64_t>(packetLen) * in Send() 1053 uint32_t packetLen = packet->CalculateLen(SingleVerDataSyncUtils::GetMessageId(syncType)); in SendDataPacket() local 1072 errCode = Send(context, message, handler, packetLen); in SendDataPacket() 1099 uint32_t packetLen = packet->CalculateLen(SingleVerDataSyncUtils::GetMessageId(syncType)); in SendPullResponseDataPkt() local 1118 SendResetWatchDogPacket(context, packetLen); in SendPullResponseDataPkt() 1119 errCode = Send(context, message, nullptr, packetLen); in SendPullResponseDataPkt() 1362 void SingleVerDataSync::SendResetWatchDogPacket(SingleVerSyncTaskContext *context, uint32_t packetLen) in SendResetWatchDogPacket() argument 1366 if (mtuSize_ >= packetLen || mtuSize in SendResetWatchDogPacket() 237 Send(SingleVerSyncTaskContext *context, const Message *message, const CommErrHandler &handler, uint32_t packetLen) Send() argument 1458 uint32_t packetLen = packet->CalculateLen(SingleVerDataSyncUtils::GetMessageId(syncType)); SendReSendPacket() local [all...] |
H A D | single_ver_data_sync_extend.cpp | 102 uint32_t packetLen = packet->CalculateLen(); in SendControlPacket() local 117 errCode = Send(context, message, handler, packetLen); in SendControlPacket()
|
/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; in HWTEST_F() local 396 GenerateAdtsHeader(adtsHeader, packetLen, profile, sampleRate, channels); in HWTEST_F() 399 GenerateAdtsHeader(adtsHeader, packetLen, profile, sampleRate, channels); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/communicator/ |
H A D | adapter_stub.cpp | 409 phyHeader->packetLen = HostToNet(packetLenField_); in ApplySendBitError()
|