/third_party/ltp/utils/sctp/func_tests/ |
D | test_getname.c | 91 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()
|
D | test_connectx.c | 97 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()
|
D | test_1_to_1_addrs.c | 121 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()
|
D | test_1_to_1_socket_bind_listen.c | 140 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()
|
D | test_connect.c | 82 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()
|
D | test_basic.c | 120 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()
|
/third_party/toybox/toys/pending/ |
D | tftp.c | 86 ((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/grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 64 addr4_out->sin_port = addr6->sin6_port; in grpc_sockaddr_is_v4mapped() 88 addr6_out->sin6_port = addr4->sin_port; in grpc_sockaddr_to_v4mapped() 110 *port_out = grpc_ntohs(addr4->sin_port); in grpc_sockaddr_is_wildcard() 142 wild_out->sin_port = grpc_htons(static_cast<uint16_t>(port)); in grpc_sockaddr_make_wildcard4() 173 port = grpc_ntohs(addr4->sin_port); in grpc_sockaddr_to_string() 264 (reinterpret_cast<const grpc_sockaddr_in*>(addr))->sin_port); in grpc_sockaddr_get_port() 283 (reinterpret_cast<grpc_sockaddr_in*>(addr))->sin_port = in grpc_sockaddr_set_port()
|
/third_party/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 46 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/ |
D | ltpServer.c | 118 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()
|
D | ltpClient.c | 131 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_standard/src/wps/ |
D | http_client.c | 62 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()
|
D | http_server.c | 50 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/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | http_client.c | 62 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()
|
D | http_server.c | 50 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/libcoap/src/ |
D | address.c | 36 case AF_INET: return ntohs(addr->addr.sin.sin_port); in coap_address_get_port() 49 addr->addr.sin.sin_port = htons(port); in coap_address_set_port() 70 a->addr.sin.sin_port == b->addr.sin.sin_port && in coap_address_equals()
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 66 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/ |
D | pipe.c | 101 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/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | ctrl_iface_udp.c | 104 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/curl/lib/ |
D | socketpair.c | 82 a.inaddr.sin_port = 0; in Curl_socketpair() 124 a.inaddr.sin_port != a2.inaddr.sin_port) in Curl_socketpair()
|
/third_party/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg03.c | 60 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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | ctrl_iface_udp.c | 104 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/musl/libc-test/src/functionalext/supplement/network/ |
D | send.c | 48 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()
|
D | recv.c | 66 srvAddr.sin_port = htons(PORT); in SampleServerTask() 87 printf("[server] accept <%s:%d>\n", inet_ntoa(clnAddr.sin_addr), ntohs(clnAddr.sin_port)); in SampleServerTask() 104 srvAddr.sin_port = htons(PORT); in SampleClientTask()
|
D | accept4.c | 53 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()
|