/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_frame.c | 370 payloadLength = ntohs(dFileFrame->header.length); in DecodeDFileFrame() 404 if (ntohs(headerFrame->header.length) <= sizeof(uint16_t)) { in DecodeFileHeaderFrameSp() 408 uint16_t length = ntohs(headerFrame->header.length) - sizeof(uint16_t); in DecodeFileHeaderFrameSp() 409 uint16_t nodeNumber = ntohs(headerFrame->nodeNumber); in DecodeFileHeaderFrameSp() 427 size_t fileNameLength = ntohs(fileInfoUnit->fileNameLength); in DecodeFileHeaderFrameSp() 428 uint16_t fileId = ntohs(fileInfoUnit->fileId); in DecodeFileHeaderFrameSp() 469 size_t length = ntohs(confirmFrame->header.length); in DecodeFileHeaderConfirmFrame() 479 fileId = ntohs(fileIdList[i]); in DecodeFileHeaderConfirmFrame() 494 fileId = ntohs(dataFrame->fileId); in GetFileIdFromFileDataFrame() 508 uint16_t length = ntohs(transferDoneFram in DecodeFileTransferDoneFrame() [all...] |
H A D | nstackx_dfile_send.c | 142 len = ntohs(f->header.length) + DFILE_FRAME_HEADER_LEN; in SendFileDataFrame() 450 payloadLen = ntohs(frameHeader->length); in SocketRecvForTcp()
|
H A D | nstackx_file_manager.c | 554 transId = ntohs(blockFrame->fileDataFrame->header.transId); in GetFrameHearderInfo() 555 *fileId = ntohs(blockFrame->fileDataFrame->fileId); in GetFrameHearderInfo() 557 length = ntohs(blockFrame->fileDataFrame->header.length); in GetFrameHearderInfo() 1150 len += ntohs(header->length) + sizeof(DFileFrameHeader); in RefreshBytesTransFerred() 1673 transId = ntohs(frame->header.transId); in FileManagerFileWrite()
|
H A D | nstackx_dfile_session.c | 770 uint16_t transId = ntohs(dFileFrame->header.transId); in DFileSessionHandleRst() 869 uint16_t transId = ntohs(dFileFrame->header.transId); in DFileSessionHandleFrame() 991 data.sockAddr[i].sin_port = ntohs(session->socket[i]->srcAddr.sin_port); in NotifyBindPort() 1597 if (ntohs(dFileFrame->header.length) > NSTACKX_MAX_FRAME_SIZE - sizeof(DFileFrameHeader)) { in ProcessDFileFrameList() 1598 DFILE_LOGE(TAG, "header length %u is too big", ntohs(dFileFrame->header.length)); in ProcessDFileFrameList()
|
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/ |
H A D | socket_extra_exec.cpp | 64 localAddress.SetPort(ntohs(addrIn->sin_port)); in ExecGetLocalAddress() 71 localAddress.SetPort(ntohs(addrIn6->sin6_port)); in ExecGetLocalAddress() 99 localAddress.SetPort(ntohs(addrIn->sin_port)); in ExecTcpServerGetLocalAddress() 106 localAddress.SetPort(ntohs(addrIn6->sin6_port)); in ExecTcpServerGetLocalAddress()
|
H A D | socket_exec.cpp | 101 context->state_.SetIsBound(ntohs(addr4->sin_port) != 0); in SetIsBound() 103 context->state_.SetIsBound(ntohs(addr6->sin6_port) != 0); in SetIsBound() 111 context->state_.SetIsConnected(ntohs(addr4->sin_port) != 0); in SetIsConnected() 113 context->state_.SetIsConnected(ntohs(addr6->sin6_port) != 0); in SetIsConnected() 333 remoteInfo.SetPort(ntohs(addr4->sin_port)); in OnRecvMessage() 336 remoteInfo.SetPort(ntohs(addr6->sin6_port)); in OnRecvMessage() 1249 context->address_.SetPort(ntohs(addr4.sin_port)); in ExecGetRemoteAddress() 1262 context->address_.SetPort(ntohs(addr6.sin6_port)); in ExecGetRemoteAddress() 1584 context->address_.SetPort(ntohs(addr4.sin_port)); in GetIPv4Address() 1607 context->address_.SetPort(ntohs(addr in GetIPv6Address() [all...] |
/foundation/communication/dhcp/services/utils/src/ |
H A D | dhcp_arp_checker.cpp | 150 if (ntohs(respPacket->ar_hrd) == ARPHRD_ETHER && in DoArpCheck() 151 ntohs(respPacket->ar_pro) == ETH_P_IP && in DoArpCheck() 154 ntohs(respPacket->ar_op) == ARPOP_REPLY && in DoArpCheck() 198 if (ntohs(respPacket->ar_hrd) == ARPHRD_ETHER && in GetGwMacAddrList() 199 ntohs(respPacket->ar_pro) == ETH_P_IP && in GetGwMacAddrList() 202 ntohs(respPacket->ar_op) == ARPOP_REPLY && in GetGwMacAddrList()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/rpcid_decode/ |
H A D | syscap_tool.c | 73 sysCaptype = ntohs(*(uint16_t *)(sysCapArrayPtr - APP_SYSCAP_TYPE * sizeof(uint16_t)));
in RPCIDStreamDecodeToBuffer() 79 sysCapLength = ntohs(*(uint16_t *)(sysCapArrayPtr - sizeof(uint16_t)));
in RPCIDStreamDecodeToBuffer()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | stream_packet_header.h | 132 firstLevelHeader.type = ntohs(*tmp++); in Depacketize() 133 firstLevelHeader.length = ntohs(*tmp++); in Depacketize() 141 tl.type = ntohs(*tmp++); in Depacketize() 142 tl.length = ntohs(*tmp++); in Depacketize()
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/channel/src/tcp/ |
H A D | tcp_socket.cpp | 81 return ntohs(sockaddr.sin_port); in GetBindPort() 96 return ntohs(sockaddr.sin_port); in GetPeerPort()
|
/foundation/CastEngine/castengine_cast_plus_stream/src/channel/src/tcp/ |
H A D | tcp_socket.cpp | 81 return ntohs(sockaddr.sin_port); in GetBindPort() 96 return ntohs(sockaddr.sin_port); in GetPeerPort()
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/src/ |
H A D | rtp_packet.cpp | 113 return ntohs(GetHeader()->seq_); in GetSeq()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bpf_netfirewall.cpp | 615 (ev->dir == INGRESS) ? "> ingress" : "< egress", ntohs(ev->sport), ntohs(ev->dport), ev->protocol, ev->appuid, in HandleTupleEvent() 625 (ev->dir == INGRESS) ? "ingress" : "egress", ntohs(ev->sport), ntohs(ev->dport), ev->protocol, ev->appuid); in HandleInterceptEvent() 633 NETNATIVE_LOG_D("%{public}s sport: %{public}u bitmap: %{public}x", direction, ntohs(ev->arg1), ev->arg2); in HandleDebugEvent() 636 NETNATIVE_LOG_D("%{public}s dport: %{public}u bitmap: %{public}x", direction, ntohs(ev->arg1), ev->arg2); in HandleDebugEvent()
|
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_socket.cpp | 336 if (ntohs(pPacket->udp.len) != uLen) { in CheckUdpPacket() 408 int nRet = CheckReadBytes(nBytes, (int)ntohs(udpPackets.ip.tot_len)); in GetDhcpRawPacket() 415 nBytes = (int)ntohs(udpPackets.ip.tot_len); in GetDhcpRawPacket()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | clatd_packet_converter.cpp | 191 ipHeader.tot_len = htons(ntohs(ipHeader.tot_len) + GetIovPacketLength(pos)); in ConvertV6Packet() 230 ipHeader->tot_len = htons(ntohs(ipHeader->tot_len) + GetIovPacketLength(pos)); in ConvertV6TpPacket() 335 uint16_t fragValue = ntohs(ipHeader->frag_off); in WriteFragHeader() 347 ip6FragHeader->ip6f_ident = htonl(ntohs(ipHeader->id)); in WriteFragHeader() 356 uint16_t fragOffset = ntohs(ip6FragHeader->ip6f_offlg & IP6F_OFF_MASK) >> IPV6_FRAG_OFFSET_BIT_SUPPLEMENTARY; in ProcessFragHeader()
|
H A D | clatd.cpp | 252 uint16_t tunProtocol = ntohs(readBuf.tunProtocolInfo.proto); in ProcessV4Packet()
|
/foundation/CastEngine/castengine_wifi_display/tests/demo/network/ |
H A D | udp_server_demo.cpp | 59 inet_ntoa(client_addr.sin_addr), ntohs(client_addr.sin_port), recvbuf, ret); in pthread_handle_message()
|
/foundation/CastEngine/castengine_wifi_display/services/network/socket/ |
H A D | socket_utils.cpp | 536 localPort = ntohs(localAddr.sin_port); in GetIpPortInfo() 537 remotePort = ntohs(remoteAddr.sin_port); in GetIpPortInfo()
|
/foundation/CastEngine/castengine_wifi_display/tests/demo/player/ |
H A D | player_demo.cpp | 187 ntohs(cliAddr.sin_port)); in RecvUDP()
|
/foundation/CastEngine/castengine_wifi_display/tests/demo/protocol/rtsp/ |
H A D | rtsp_player_demo.cpp | 87 printf("\nRecv data(size:%d) From %s:%d\n", nbytes, inet_ntoa(cliAddr.sin_addr), ntohs(cliAddr.sin_port)); in RecvUDP()
|
/foundation/CastEngine/castengine_wifi_display/tests/demo/rtp/ |
H A D | rtp_dec_demo.cpp | 115 printf("\nRecv data(size:%d) From %s:%d\n", nbytes, inet_ntoa(cliAddr.sin_addr), ntohs(cliAddr.sin_port)); in RecvUDP()
|
/foundation/communication/netstack/frameworks/js/napi/tls/src/ |
H A D | tlssocket_exec.cpp | 460 localAddress.SetPort(ntohs(addr_in->sin_port)); in ExecGetLocalAddress() 467 localAddress.SetPort(ntohs(addr_in6->sin6_port)); in ExecGetLocalAddress()
|
H A D | tlssocketserver_exec.cpp | 320 localAddress.SetPort(ntohs(addr_in->sin_port)); in ExecGetLocalAddress() 327 localAddress.SetPort(ntohs(addr_in6->sin6_port)); in ExecGetLocalAddress()
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtcp/src/ |
H A D | rtcp.cpp | 31 return (1 + ntohs(length_)) << 2; // 2:byte offset in GetSize()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/ |
H A D | pan_network.cpp | 430 uint16_t protocol = ntohs(head.protocol); in ReadPanNetworkEvent()
|