Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 - 25 of 35) sorted by relevance

12

/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_frame.c370 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 Dnstackx_dfile_send.c142 len = ntohs(f->header.length) + DFILE_FRAME_HEADER_LEN; in SendFileDataFrame()
450 payloadLen = ntohs(frameHeader->length); in SocketRecvForTcp()
H A Dnstackx_file_manager.c554 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 Dnstackx_dfile_session.c770 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 Dsocket_extra_exec.cpp64 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 Dsocket_exec.cpp101 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 Ddhcp_arp_checker.cpp150 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 Dsyscap_tool.c73 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 Dstream_packet_header.h132 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 Dtcp_socket.cpp81 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 Dtcp_socket.cpp81 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 Drtp_packet.cpp113 return ntohs(GetHeader()->seq_); in GetSeq()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_netfirewall.cpp615 (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 Ddhcp_socket.cpp336 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 Dclatd_packet_converter.cpp191 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 Dclatd.cpp252 uint16_t tunProtocol = ntohs(readBuf.tunProtocolInfo.proto); in ProcessV4Packet()
/foundation/CastEngine/castengine_wifi_display/tests/demo/network/
H A Dudp_server_demo.cpp59 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 Dsocket_utils.cpp536 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 Dplayer_demo.cpp187 ntohs(cliAddr.sin_port)); in RecvUDP()
/foundation/CastEngine/castengine_wifi_display/tests/demo/protocol/rtsp/
H A Drtsp_player_demo.cpp87 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 Drtp_dec_demo.cpp115 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 Dtlssocket_exec.cpp460 localAddress.SetPort(ntohs(addr_in->sin_port)); in ExecGetLocalAddress()
467 localAddress.SetPort(ntohs(addr_in6->sin6_port)); in ExecGetLocalAddress()
H A Dtlssocketserver_exec.cpp320 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 Drtcp.cpp31 return (1 + ntohs(length_)) << 2; // 2:byte offset in GetSize()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/
H A Dpan_network.cpp430 uint16_t protocol = ntohs(head.protocol); in ReadPanNetworkEvent()

Completed in 23 milliseconds

12