Home
last modified time | relevance | path

Searched refs:sin_port (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/third_party/ltp/utils/sctp/func_tests/
Dtest_getname.c91 svr_loop.v4.sin_port = htons(SCTP_TESTPORT_1); in main()
177 if (svr_local_addr.v4.sin_port != clt_peer_addr.v4.sin_port) in main()
180 svr_local_addr.v4.sin_port, clt_peer_addr.v4.sin_port); in main()
182 if (svr_peer_addr.v4.sin_port != clt_local_addr.v4.sin_port) in main()
185 svr_peer_addr.v4.sin_port, clt_local_addr.v4.sin_port); in main()
Dtest_connectx.c97 svr_loop[i].sin_port = htons(SCTP_TESTPORT_1); in main()
100 svr_test[i].v4.sin_port = htons(SCTP_TESTPORT_1); in main()
108 svr_try[i].sin_port = htons(SCTP_TESTPORT_1); in main()
111 clt_loop1[i].sin_port = htons(SCTP_TESTPORT_2); in main()
114 clt_test1[i].v4.sin_port = htons(SCTP_TESTPORT_2); in main()
117 clt_loop2[i].sin_port = htons(SCTP_TESTPORT_2+1); in main()
120 clt_test2[i].v4.sin_port = htons(SCTP_TESTPORT_2+1); in main()
123 clt_loop3[i].sin_port = htons(SCTP_TESTPORT_2+2); in main()
Dtest_1_to_1_addrs.c121 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
125 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
219 if (addr->sin_port != lstn_addr.sin_port || in main()
276 if (addr->sin_port != acpt_addr.sin_port || in main()
Dtest_1_to_1_socket_bind_listen.c140 bind_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
199 bind_addr.sin_port = htons(SCTP_RESERVED_PORT); in main()
212 bind_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
229 bind_addr.sin_port = 0; in main()
247 bind_addr.sin_port = 0; in main()
Dtest_basic.c120 loop1.v4.sin_port = htons(SCTP_TESTPORT_1); in main()
124 loop2.v4.sin_port = htons(SCTP_TESTPORT_2); in main()
223 if (msgname.v4.sin_port != htons(SCTP_TESTPORT_1)) { in main()
279 if (msgname.v4.sin_port != htons(SCTP_TESTPORT_1)) { in main()
364 ntohs(in_addr->sin_port)); in main()
394 ntohs(in_addr->sin_port)); in main()
442 if (msgname.v4.sin_port != htons(SCTP_TESTPORT_1)) { in main()
Dtest_connect.c82 svr_loop.v4.sin_port = htons(SCTP_TESTPORT_1); in main()
85 clt_loop1.v4.sin_port = htons(SCTP_TESTPORT_2); in main()
88 clt_loop2.v4.sin_port = htons(SCTP_TESTPORT_2+1); in main()
91 clt_loop3.v4.sin_port = htons(SCTP_TESTPORT_2+2); in main()
/third_party/toybox/toys/pending/
Dtftp.c86 ((struct sockaddr_in *)server)->sin_port = htons(port);
231 *port = ((struct sockaddr_in *)&from)->sin_port; in read_ack()
232 ((struct sockaddr_in *)server)->sin_port = in read_ack()
233 ((struct sockaddr_in *)&from)->sin_port; in read_ack()
240 if (*port != ((struct sockaddr_in *)server)->sin_port) { in read_ack()
286 else ((struct sockaddr_in *)&server)->sin_port = 0; in file_get()
305 if ( ((TT.af == AF_INET) && ((struct sockaddr_in *)&server)->sin_port in file_get()
306 && (((struct sockaddr_in *)&server)->sin_port != in file_get()
307 ((struct sockaddr_in *)&from)->sin_port)) || in file_get()
350 else if ((TT.af == AF_INET) && !((struct sockaddr_in *)&server)->sin_port) in file_get()
[all …]
/third_party/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c46 in_port_t sin_port = 0; in verify_res() local
72 sin_port = psin->sin_port; in verify_res()
78 sin_port = psin6->sin6_port; in verify_res()
82 ret |= sin_port != htons(servnum); in verify_res()
91 htons(sin_port), got_tcp, got_udp); in verify_res()
97 htons(sin_port)); in verify_res()
/third_party/ltp/testcases/network/sockets/
DltpServer.c118 multiServerAddr.sin_port = in main()
175 udpServerAddr.sin_port = htons(LOCAL_UDP_SERVER_PORT); in main()
192 tcpServerAddr.sin_port = htons(LOCAL_TCP_SERVER_PORT); in main()
250 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()
DltpClient.c131 udpRemoteServerAddr.sin_port = htons(LOCAL_UDP_SERVER_PORT); in main()
138 tcpRemoteServerAddr.sin_port = htons(LOCAL_TCP_SERVER_PORT); in main()
145 mcastRemoteServerAddr.sin_port = htons(LOCAL_MCAST_SERVER_PORT); in main()
162 udpClientAddr.sin_port = htons(0); in main()
167 tcpClientAddr.sin_port = htons(0); in main()
217 mcastClientAddr.sin_port = htons(0); in main()
321 rawTraceAddr.sin_port = 0; in ltp_run_traceroute_tests()
348 rawAddr.sin_port = 0; in ltp_run_ping_tests()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
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()
221 dst->sin_port = htons(atoi(port)); in http_client_url_parse()
223 dst->sin_port = htons(80); in http_client_url_parse()
270 ntohs(dst.sin_port)); in http_client_url()
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()
267 sin.sin_port = htons(srv->port); in http_server_init()
Dwps_upnp_ssdp.c240 dest.sin_port = htons(UPNP_MULTICAST_PORT); in advertisement_state_machine_stop()
289 dest.sin_port = htons(UPNP_MULTICAST_PORT); in advertisement_state_machine_handler()
399 ntohs(a->client.sin_port)); in msearchreply_state_machine_handler()
414 ntohs(a->client.sin_port)); in msearchreply_state_machine_handler()
712 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf); in ssdp_listener_handler()
744 addr.sin_port = htons(UPNP_MULTICAST_PORT); in ssdp_listener_open()
820 sin->sin_port = 0; in add_ssdp_network()
824 sin->sin_port = 0; in add_ssdp_network()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
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()
221 dst->sin_port = htons(atoi(port)); in http_client_url_parse()
223 dst->sin_port = htons(80); in http_client_url_parse()
270 ntohs(dst.sin_port)); in http_client_url()
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()
267 sin.sin_port = htons(srv->port); in http_server_init()
/third_party/node/deps/ngtcp2/ngtcp2/lib/
Dngtcp2_addr.c59 return ai->sin_port == bi->sin_port && in sockaddr_eq()
95 if (ai->sin_port != bi->sin_port) { in ngtcp2_addr_compare()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface_udp.c104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
135 from->sin_port == dst->addr.sin_port) {
138 ntohs(from->sin_port));
182 from->sin_port == dst->addr.sin_port) {
185 ntohs(from->sin_port));
440 addr.sin_port = htons(port);
545 ntohs(dst->addr.sin_port));
767 addr.sin_port = htons(port);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface_udp.c104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
135 from->sin_port == dst->addr.sin_port) {
138 ntohs(from->sin_port));
182 from->sin_port == dst->addr.sin_port) {
185 ntohs(from->sin_port));
456 addr.sin_port = htons(port);
565 ntohs(dst->addr.sin_port));
813 addr.sin_port = htons(port);
/third_party/lame/frontend/
Drtp.c114 sin.sin_port = htons(port); in rtp_socket()
228 source.sin_port = htons(0); in rtp_socket()
247 dest.sin_port = htons((u_short) port); in rtp_socket()
276 error_printf("broadcast %s:%u %s\r\n", inet_ntoa(dest.sin_addr), ntohs(dest.sin_port), c); in rtp_socket()
284 error_printf("multicast %s:%u %s\r\n", inet_ntoa(dest.sin_addr), ntohs(dest.sin_port), c); in rtp_socket()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind01.c66 sin1.sin_port = TST_GET_UNUSED_PORT(AF_INET, SOCK_STREAM); in test_setup()
70 sin2.sin_port = 0; in test_setup()
74 sin3.sin_port = 0; in test_setup()
/third_party/pulseaudio/src/pulsecore/
Dpipe.c101 addr.sin_port = 0; in pipe()
137 if ((addr.sin_port != peer.sin_port) || (addr.sin_addr.s_addr != peer.sin_addr.s_addr)) in pipe()
/third_party/musl/Benchmark/musl/
Dsocket_test.cpp35 serverAddr.sin_port = htons(PORT); in Bm_function_socket_server()
348 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()
550 addr.sin_port = htons(PORT); in Bm_function_bind()
/third_party/musl/libc-test/src/functionalext/supplement/network/
Daccept4.c53 srvAddr.sin_port = htons(PORT); in ServerTaskOne()
94 srvAddr.sin_port = htons(PORT); in ServerTaskTwo()
135 srvAddr.sin_port = htons(PORT); in ServerTaskThree()
176 srvAddr.sin_port = htons(PORT); in ServerTaskFive()
216 srvAddr.sin_port = htons(PORT); in ServerTaskSix()
245 srvAddr.sin_port = htons(PORT); in ClientTask()
Dsend.c48 srvAddr.sin_port = htons(PORT); in SampleServerTask()
80 srvAddr.sin_port = htons(PORT); in SampleClientTask()
106 srvAddr.sin_port = htons(PORT); in SampleServerNullTask()
134 srvAddr.sin_port = htons(PORT); in SampleClientNullTask()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg03.c60 server_addr.sin_port = htons(4001); in client()
68 to_addr.sin_port = htons(4000); in client()
103 server_addr.sin_port = htons(4000); in server()

12345678910>>...13