Home
last modified time | relevance | path

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

123456789

/third_party/musl/libc-test/src/functionalext/supplement/network/
H A Dgetservbyname.c62 EXPECT_EQ("getservbyname_0300", ntohs(se->s_port), FTP_PORT); in getservbyname_0300()
74 EXPECT_EQ("getservbyname_0400", ntohs(se->s_port), HTTP_PORT); in getservbyname_0400()
86 EXPECT_EQ("getservbyname_0500", ntohs(se->s_port), TCPMUX_PORT); in getservbyname_0500()
98 EXPECT_EQ("getservbyname_0600", ntohs(se->s_port), FIDO_PORT); in getservbyname_0600()
H A Dgetservbyport.c30 EXPECT_EQ("getservbyport_0100", ntohs(se->s_port), TEST_GET_SEVERBY_TCP_PORT); in getservbyport_0100()
36 EXPECT_EQ("getservbyport_0100", ntohs(se->s_port), TEST_GET_SEVERBY_TCP_PORT); in getservbyport_0100()
42 EXPECT_EQ("getservbyport_0100", ntohs(se->s_port), TEST_GET_SEVERBY_UDP_PORT); in getservbyport_0100()
/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...]
/third_party/musl/libc-test/src/api/
H A Darpa_inet.c31 #ifdef ntohs in f()
32 I(uint16_t, ntohs(0LL)) in f()
34 {uint16_t(*p)(uint16_t) = ntohs;} in f()
/third_party/ltp/utils/sctp/testlib/
H A Dsctputil.h91 ntohs((addr).s6_addr16[0]), \
92 ntohs((addr).s6_addr16[1]), \
93 ntohs((addr).s6_addr16[2]), \
94 ntohs((addr).s6_addr16[3]), \
95 ntohs((addr).s6_addr16[4]), \
96 ntohs((addr).s6_addr16[5]), \
97 ntohs((addr).s6_addr16[6]), \
98 ntohs((addr).s6_addr16[7])
/third_party/toybox/toys/pending/
H A Ddhcp6.c306 type = ntohs(type); in get_msg_ptr()
308 length = ntohs(length); in get_msg_ptr()
313 type = ntohs(*((uint16_t*)data)); in get_msg_ptr()
314 length = ntohs(*((uint16_t*)(data+2))); in get_msg_ptr()
359 iana_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
367 uint16_t sub_type = ntohs(*((uint16_t*)(t))); in parse_ia_na()
371 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
391 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
392 dhcp_data.status_code = ntohs(*((uint16_t*)(t+4))); in parse_ia_na()
397 content_len = ntohs(*((uint16_ in parse_ia_na()
[all...]
/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()
/third_party/backends/backend/
H A Dhp5590_cmds.c545 scanner_model->model, ntohs (init_resp.max_dpi_x)); in hp5590_init_scanner()
547 scanner_model->model, ntohs (init_resp.max_dpi_y)); in hp5590_init_scanner()
549 scanner_model->model, ntohs (init_resp.max_pixels_x)); in hp5590_init_scanner()
551 scanner_model->model, ntohs (init_resp.max_pixels_y)); in hp5590_init_scanner()
554 ntohs (init_resp.max_pixels_x) * 1.0 / in hp5590_init_scanner()
555 ntohs (init_resp.max_dpi_x)); in hp5590_init_scanner()
557 ntohs (init_resp.max_pixels_y) * 1.0 / in hp5590_init_scanner()
558 ntohs (init_resp.max_dpi_y)); in hp5590_init_scanner()
560 scanner_model->model, ntohs (init_resp.motor_param_normal), in hp5590_init_scanner()
561 ntohs (init_res in hp5590_init_scanner()
[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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dfils_hlp.c26 sum += ntohs(*pos++); in ip_checksum()
28 sum += ntohs(*pos << 8); in ip_checksum()
142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in fils_dhcp_request()
176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res); in fils_dhcp_handler()
460 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in fils_process_hlp_dhcp()
490 sport = ntohs(udph->uh_sport); in fils_process_hlp_udp()
491 dport = ntohs(udph->uh_dport); in fils_process_hlp_udp()
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
524 ip_len = ntohs(ip in fils_process_hlp_ip()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dfils_hlp.c26 sum += ntohs(*pos++); in ip_checksum()
28 sum += ntohs(*pos << 8); in ip_checksum()
142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in fils_dhcp_request()
176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res); in fils_dhcp_handler()
460 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in fils_process_hlp_dhcp()
490 sport = ntohs(udph->uh_sport); in fils_process_hlp_udp()
491 dport = ntohs(udph->uh_dport); in fils_process_hlp_udp()
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
524 tot_len = ntohs(ip in fils_process_hlp_ip()
[all...]
/third_party/lwip/src/include/lwip/distributed_net/
H A Ddistributed_net_core.h56 ((addr)->sin_addr.s_addr == ipaddr_addr(LOCAL_SERVER_IP) && (addr)->sin_port == ntohs(get_local_udp_server_port()))
58 #define IS_DNS_PORT(addr) (ntohs((addr).sin_port) == DNS_PORT)
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
H A Ddef.h95 #ifdef ntohs
96 #define lwip_ntohs ntohs
103 #define ntohs lwip_ntohs macro
104 #endif /* ntohs */
/third_party/libwebsockets/lib/roles/listen/
H A Dops-listen.c108 ntohs(((struct sockaddr_in6 *) &filt.cli_addr)->sin6_port) : in rops_handle_POLLIN_listen()
109 ntohs(((struct sockaddr_in *) &filt.cli_addr)->sin_port)), in rops_handle_POLLIN_listen()
117 ntohs(sain.sin_port), in rops_handle_POLLIN_listen()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
H A Dhttp_client.c62 ntohs(c->dst.sin_port)); in http_client_got_response()
68 ntohs(c->dst.sin_port)); in http_client_got_response()
93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready()
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready()
270 ntohs(dst.sin_port)); in http_client_url()
H A Dhttp_server.c50 ntohs(req->cli.sin_port)); in http_request_cb()
56 ntohs(req->cli.sin_port)); in http_request_cb()
139 ntohs(req->cli.sin_port)); in http_request_send()
214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
H A Dhttp_client.c62 ntohs(c->dst.sin_port)); in http_client_got_response()
68 ntohs(c->dst.sin_port)); in http_client_got_response()
93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready()
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready()
270 ntohs(dst.sin_port)); in http_client_url()
H A Dhttp_server.c50 ntohs(req->cli.sin_port)); in http_request_cb()
56 ntohs(req->cli.sin_port)); in http_request_cb()
139 ntohs(req->cli.sin_port)); in http_request_send()
214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb()
/third_party/rust/crates/linux-raw-sys/gen/include/
H A Dsupport.h32 #define ntohs(x) (x) macro
37 #define ntohs(x) (__builtin_bswap16(x)) macro
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dctrl_iface_udp.c101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach()
104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
132 ntohs(from->sin6_port));
138 ntohs(from->sin_port));
179 ntohs(from->sin6_port));
185 ntohs(from->sin_port));
541 ntohs(dst->addr.sin6_port));
545 ntohs(dst->addr.sin_port));
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dctrl_iface_udp.c101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach()
104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
132 ntohs(from->sin6_port));
138 ntohs(from->sin_port));
179 ntohs(from->sin6_port));
185 ntohs(from->sin_port));
561 ntohs(dst->addr.sin6_port));
565 ntohs(dst->addr.sin_port));
/third_party/ltp/lib/
H A Dsafe_net.c37 if (ntohs(sin->sin_port) != 0) { in tst_sock_addr()
39 ntohs(sin->sin_port)); in tst_sock_addr()
53 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr()
55 ntohs(sin6->sin6_port)); in tst_sock_addr()
97 return ntohs(sin->sin_port); in tst_getsockport()
102 return ntohs(sin6->sin6_port); in tst_getsockport()
/third_party/musl/Benchmark/musl/
H A Dsocket_test.cpp348 printf("peer addr: %s:%d\n", inet_ntoa(peerAddr.sin_addr), ntohs(peerAddr.sin_port)); in Bm_function_getpeername_client_local()
366 printf("peer addr: %s:%d\n", inet_ntoa(peerAddr.sin_addr), ntohs(peerAddr.sin_port)); in Bm_function_getpeername_client_external()
425 printf("peer addr: %s:%d\n", inet_ntoa(peerAddr.sin_addr), ntohs(peerAddr.sin_port)); in Bm_function_getpeername_server()
443 printf("sock addr: %s:%d\n", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in Bm_function_getsockname_client_local()
461 printf("sock addr: %s:%d\n", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in Bm_function_getsockname_client_external()
480 printf("sock addr: %s:%d\n", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in Bm_function_getsockname_server()
/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()
/third_party/ltp/testcases/network/sockets/
H A DltpServer.c250 ntohs(udpClientAddr.sin_port), message); in ltp_udp_server_queue()
291 ntohs(tcpClientAddr.sin_port), message); in ltp_tcp_server_queue()
410 ntohs(multiClientAddr.sin_port), hostname, message); in ltp_multi_server_queue()

Completed in 17 milliseconds

123456789