/third_party/ltp/utils/sctp/func_tests/ |
D | test_getname.c | 87 svr_loop.v4.sin_port = htons(SCTP_TESTPORT_1); in main() 173 if (svr_local_addr.v4.sin_port != clt_peer_addr.v4.sin_port) in main() 176 svr_local_addr.v4.sin_port, clt_peer_addr.v4.sin_port); in main() 178 if (svr_peer_addr.v4.sin_port != clt_local_addr.v4.sin_port) in main() 181 svr_peer_addr.v4.sin_port, clt_local_addr.v4.sin_port); in main()
|
D | test_connectx.c | 93 svr_loop[i].sin_port = htons(SCTP_TESTPORT_1); in main() 96 svr_test[i].v4.sin_port = htons(SCTP_TESTPORT_1); in main() 104 svr_try[i].sin_port = htons(SCTP_TESTPORT_1); in main() 107 clt_loop1[i].sin_port = htons(SCTP_TESTPORT_2); in main() 110 clt_test1[i].v4.sin_port = htons(SCTP_TESTPORT_2); in main() 113 clt_loop2[i].sin_port = htons(SCTP_TESTPORT_2+1); in main() 116 clt_test2[i].v4.sin_port = htons(SCTP_TESTPORT_2+1); in main() 119 clt_loop3[i].sin_port = htons(SCTP_TESTPORT_2+2); in main()
|
D | test_1_to_1_addrs.c | 117 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 121 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 215 if (addr->sin_port != lstn_addr.sin_port || in main() 272 if (addr->sin_port != acpt_addr.sin_port || in main()
|
D | test_1_to_1_socket_bind_listen.c | 136 bind_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 195 bind_addr.sin_port = htons(SCTP_RESERVED_PORT); in main() 208 bind_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 225 bind_addr.sin_port = 0; in main() 243 bind_addr.sin_port = 0; in main()
|
D | test_connect.c | 78 svr_loop.v4.sin_port = htons(SCTP_TESTPORT_1); in main() 81 clt_loop1.v4.sin_port = htons(SCTP_TESTPORT_2); in main() 84 clt_loop2.v4.sin_port = htons(SCTP_TESTPORT_2+1); in main() 87 clt_loop3.v4.sin_port = htons(SCTP_TESTPORT_2+2); in main()
|
D | test_basic.c | 116 loop1.v4.sin_port = htons(SCTP_TESTPORT_1); in main() 120 loop2.v4.sin_port = htons(SCTP_TESTPORT_2); in main() 219 if (msgname.v4.sin_port != htons(SCTP_TESTPORT_1)) { in main() 275 if (msgname.v4.sin_port != htons(SCTP_TESTPORT_1)) { in main() 360 ntohs(in_addr->sin_port)); in main() 390 ntohs(in_addr->sin_port)); in main() 438 if (msgname.v4.sin_port != htons(SCTP_TESTPORT_1)) { in main()
|
D | test_inaddr_any.c | 108 loop.v4.sin_port = 0; in main() 112 anyaddr.v4.sin_port = 0; in main() 146 loop.v4.sin_port = anyaddr.v4.sin_port; 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/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 98 err |= psin->sin_port != 0; in gaiv4() 109 psin ? psin->sin_port : 0, in gaiv4() 110 psin ? htons(psin->sin_port) : 0); in gaiv4() 175 err |= psin->sin_port != htons(servnum); in gaiv4() 186 psin ? psin->sin_port : 0, in gaiv4() 187 psin ? htons(psin->sin_port) : 0); in gaiv4() 223 err |= psin->sin_port != servnum; in gaiv4() 234 psin ? psin->sin_port : 0, in gaiv4() 235 psin ? htons(psin->sin_port) : 0); in gaiv4() 290 err |= psin->sin_port != servnum; in gaiv4() [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/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/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_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/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/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/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)); 439 addr.sin_port = htons(port); 544 ntohs(dst->addr.sin_port)); 745 addr.sin_port = htons(port);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | ctrl_iface_udp.c | 103 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 134 from->sin_port == dst->addr.sin_port) { 137 ntohs(from->sin_port)); 181 from->sin_port == dst->addr.sin_port) { 184 ntohs(from->sin_port)); 438 addr.sin_port = htons(port); 543 ntohs(dst->addr.sin_port)); 744 addr.sin_port = htons(port);
|
/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/lwip/src/include/lwip/distributed_net/ |
D | distributed_net_core.h | 51 …((addr)->sin_addr.s_addr == ipaddr_addr(LOCAL_SERVER_IP) && (addr)->sin_port == ntohs(get_local_ud… 53 #define IS_DNS_PORT(addr) (ntohs((addr).sin_port) == DNS_PORT)
|
/third_party/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 187 sin2.sin_port = TST_GET_UNUSED_PORT(NULL, AF_INET, SOCK_STREAM); in setup() 191 sin3.sin_port = 0; in setup() 196 sin4.sin_port = 0; in setup() 246 sin0->sin_port = 0; /* pick random free port */ in start_server()
|