/external/iputils/ |
D | rdisc.c | 224 return (sin->sin_addr.s_addr == INADDR_BROADCAST); in isbroadcast() 229 return IN_CLASSD(ntohl(sin->sin_addr.s_addr)); in ismulticast() 423 to->sin_addr.s_addr = inet_addr(sendaddress); in main() 427 joinaddr.sin_addr.s_addr = inet_addr(recvaddress); in main() 548 pr_name(sin->sin_addr)); in solicitor() 593 pr_name(sin->sin_addr)); in advertise() 631 if ((sin->sin_addr.s_addr & ifp->netmask.s_addr) == in advertise() 635 pr_name(sin->sin_addr)); in advertise() 732 pr_name(from->sin_addr)); in pr_pack() 755 pr_name(from->sin_addr)); in pr_pack() [all …]
|
D | ping.c | 202 ptr = (__u8*)&source.sin_addr; in main() 212 if (inet_pton(AF_INET, optarg, &source.sin_addr) > 0) in main() 265 if (inet_aton(target, &whereto.sin_addr) == 1) { in main() 295 memcpy(&whereto.sin_addr, hp->h_addr, 4); in main() 311 route[nroute++] = whereto.sin_addr.s_addr; in main() 316 if (source.sin_addr.s_addr == 0) { in main() 337 if (IN_MULTICAST(ntohl(dst.sin_addr.s_addr))) { in main() 362 dst.sin_addr.s_addr = route[0]; in main() 408 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, in main() 409 &source.sin_addr, sizeof(source.sin_addr))) in main() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_er_ssdp.c | 39 er->filter_addr.s_addr != addr.sin_addr.s_addr) in wps_er_ssdp_rx() 43 inet_ntoa(addr.sin_addr)); in wps_er_ssdp_rx() 108 wps_er_ap_cache_settings(er, &addr.sin_addr); in wps_er_ssdp_rx() 109 wps_er_ap_remove(er, &addr.sin_addr); in wps_er_ssdp_rx() 121 location, inet_ntoa(addr.sin_addr), max_age); in wps_er_ssdp_rx() 123 wps_er_ap_add(er, uuid, &addr.sin_addr, location, max_age); in wps_er_ssdp_rx() 147 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in wps_er_send_ssdp_msearch()
|
D | http_client.c | 61 inet_ntoa(c->dst.sin_addr), in http_client_got_response() 67 inet_ntoa(c->dst.sin_addr), 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() 211 if (inet_aton(addr, &dst->sin_addr) == 0) { in http_client_url_parse() 269 path, inet_ntoa(dst.sin_addr), in http_client_url()
|
D | http_server.c | 49 inet_ntoa(req->cli.sin_addr), in http_request_cb() 55 "completely", inet_ntoa(req->cli.sin_addr), in http_request_cb() 138 inet_ntoa(req->cli.sin_addr), in http_request_send() 214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb() 264 sin.sin_addr.s_addr = addr->s_addr; in http_server_init()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 134 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 137 "%s:%d", inet_ntoa(from->sin_addr), 181 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 184 "level %s:%d", inet_ntoa(from->sin_addr), 254 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { 262 "source %s", inet_ntoa(from.sin_addr)); 430 addr.sin_addr.s_addr = INADDR_ANY; 432 addr.sin_addr.s_addr = htonl((127 << 24) | 1); 543 inet_ntoa(dst->addr.sin_addr), [all …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_connectx.c | 92 svr_loop[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i); in main() 95 svr_test[i].v4.sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i); in main() 99 svr_try[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i); in main() 102 svr_try[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x400); in main() 106 clt_loop1[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x100); in main() 109 clt_test1[i].v4.sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x100); in main() 112 clt_loop2[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x200); in main() 115 clt_test2[i].v4.sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x200); in main() 118 clt_loop3[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x300); in main()
|
D | test_getname.c | 86 svr_loop.v4.sin_addr.s_addr = INADDR_ANY; in main() 123 svr_loop.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 191 if (svr_local_addr.v4.sin_addr.s_addr != in main() 192 clt_peer_addr.v4.sin_addr.s_addr) in main() 195 if (svr_peer_addr.v4.sin_addr.s_addr != in main() 196 clt_local_addr.v4.sin_addr.s_addr) in main()
|
D | test_1_to_1_addrs.c | 116 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 120 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 217 addr->sin_addr.s_addr != lstn_addr.sin_addr.s_addr) in main() 274 addr->sin_addr.s_addr != acpt_addr.sin_addr.s_addr) in main()
|
D | test_1_to_1_socket_bind_listen.c | 135 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 164 bind_addr.sin_addr.s_addr = inet_addr(SCTP_INV_LOOPBACK); in main() 174 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 207 bind_addr.sin_addr.s_addr = INADDR_ANY; in main() 242 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
|
D | test_basic.c | 115 loop1.v4.sin_addr.s_addr = INADDR_ANY; in main() 119 loop2.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 226 if (msgname.v4.sin_addr.s_addr != SCTP_IP_LOOPBACK) { in main() 281 if (msgname.v4.sin_addr.s_addr != SCTP_IP_LOOPBACK) { in main() 359 NIPQUAD(in_addr->sin_addr), in main() 389 NIPQUAD(in_addr->sin_addr), in main() 445 if (msgname.v4.sin_addr.s_addr != SCTP_IP_LOOPBACK) { in main()
|
D | test_connect.c | 77 svr_loop.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 80 clt_loop1.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 83 clt_loop2.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 86 clt_loop3.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
|
/external/ltp/testcases/network/sockets/ |
D | ltpClient.c | 129 memcpy((char *)&udpRemoteServerAddr.sin_addr.s_addr, in main() 136 memcpy((char *)&tcpRemoteServerAddr.sin_addr.s_addr, in main() 143 memcpy((char *)&mcastRemoteServerAddr.sin_addr.s_addr, in main() 161 udpClientAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 166 tcpClientAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 198 if (!IN_MULTICAST(ntohl(mcastRemoteServerAddr.sin_addr.s_addr))) { in main() 202 inet_ntoa(mcastRemoteServerAddr.sin_addr)); in main() 216 mcastClientAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 322 rawTraceAddr.sin_addr.s_addr = *(long *)hostEntry->h_addr; in ltp_run_traceroute_tests() 349 rawAddr.sin_addr.s_addr = *(long *)hostEntry->h_addr; in ltp_run_ping_tests() [all …]
|
D | ltpServer.c | 117 multiServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 174 udpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 191 tcpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 249 hostname, inet_ntoa(udpClientAddr.sin_addr), in ltp_udp_server_queue() 290 inet_ntoa(tcpClientAddr.sin_addr), in ltp_tcp_server_queue() 409 inet_ntoa(multiClientAddr.sin_addr), in ltp_multi_server_queue()
|
/external/toybox/toys/pending/ |
D | route.c | 86 sockin->sin_addr.s_addr = INADDR_ANY; in get_hostname() 90 if (inet_aton(ipstr, &sockin->sin_addr)) return 0; in get_hostname() 92 memcpy(&sockin->sin_addr, host->h_addr_list[0], sizeof(struct in_addr)); in get_hostname() 208 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in get_next_params() 244 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in verify_netmask() 245 …unsigned int router_addr = ~(unsigned int)(((struct sockaddr_in *)&((rt)->rt_dst))->sin_addr.s_add… in verify_netmask() 252 addr_mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in verify_netmask() 277 (((struct sockaddr_in *)&rt.rt_genmask)->sin_addr.s_addr) in setroute() 292 (((struct sockaddr_in *)&((rt).rt_genmask))->sin_addr.s_addr) = INVALID_ADDR; in setroute()
|
D | traceroute.c | 295 if (memcmp(&((struct sockaddr_in *)&last_addr)->sin_addr, in do_trace() 296 &((struct sockaddr_in *)&from)->sin_addr, in do_trace() 304 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace() 307 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace() 315 rcv_len, inet_ntoa(((struct sockaddr_in *)&from)->sin_addr), in do_trace() 470 if (!memcmp(&((struct sockaddr_in *)&from)->sin_addr, in do_trace() 471 &((struct sockaddr_in *)&dest)->sin_addr, sizeof(struct in_addr)) in do_trace() 500 TT.gw_list[lsrr] = sin.sin_addr.s_addr; in traceroute_main() 543 TT.gw_list[lsrr] = ((struct sockaddr_in *)&dest)->sin_addr.s_addr; in traceroute_main() 585 if (!inet_aton(TT.src_ip, &(source.sin_addr))) in traceroute_main() [all …]
|
/external/python/cpython2/Demo/pysvr/ |
D | pysvr.c | 124 addr.sin_addr.s_addr = 0L; in main_thread() 156 if (clientaddr.sin_addr.s_addr != addr.sin_addr.s_addr) { in main_thread() 160 ntohl(addr.sin_addr.s_addr), in main_thread() 161 ntohl(clientaddr.sin_addr.s_addr)); in main_thread()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 89 .sin_addr.s_addr = __constant_htonl(addr4), \ 128 off = __builtin_offsetof(struct sockaddr_in, sin_addr); in util_printaddr() 317 in_saddr4.sin_addr.s_addr, in build_packet() 318 in_daddr4.sin_addr.s_addr, in build_packet() 340 out_saddr4.sin_addr.s_addr, in build_packet() 341 out_daddr4.sin_addr.s_addr, in build_packet() 376 extra_saddr4.sin_addr.s_addr, in build_packet() 377 extra_daddr4.sin_addr.s_addr, in build_packet() 606 parse_addr(AF_INET, &addr->sin_addr, optarg); in parse_addr4()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_get_myaddress/ |
D | rpc_get_myaddress.c | 49 sin.sin_addr.s_addr = 0; in main() 54 test_status = (sin.sin_addr.s_addr == 0); in main()
|
/external/tensorflow/tensorflow/contrib/ignite/kernels/client/ |
D | ignite_plain_client_unix.cc | 49 server.sin_addr.s_addr = inet_addr(host_.c_str()); in Connect() 50 if (server.sin_addr.s_addr == -1) { in Connect() 58 if (addr_list[0] != NULL) server.sin_addr = *addr_list[0]; in Connect()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 59 memcpy(&addr4_out->sin_addr, &addr6->sin6_addr.s6_addr[12], 4); in grpc_sockaddr_is_v4mapped() 83 memcpy(&addr6_out->sin6_addr.s6_addr[12], &addr4->sin_addr, 4); in grpc_sockaddr_to_v4mapped() 103 if (addr4->sin_addr.s_addr != 0) { in grpc_sockaddr_is_wildcard() 173 ip = &addr4->sin_addr; in grpc_sockaddr_to_string() 210 } else if (grpc_inet_pton(GRPC_AF_INET, addr, &addr4->sin_addr) == 1) { in grpc_string_to_sockaddr()
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg03.c | 69 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client() 77 to_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client() 112 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in server()
|
/external/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 156 sin1.sin_addr.s_addr = INADDR_ANY; in setup() 160 sin2.sin_addr.s_addr = INADDR_ANY; in setup() 165 sin3.sin_addr.s_addr = htonl(0x0AFFFEFD); in setup()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 110 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 111 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 164 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 165 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 229 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 230 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 479 memcpy(&sin->sin_addr, &pi->ipi_addr, 480 sizeof(sin->sin_addr)); 515 memcpy(&sin->sin_addr, CMSG_DATA(cm), 516 sizeof(sin->sin_addr)); [all …]
|
/external/webrtc/webrtc/base/ |
D | socketaddress.cc | 266 saddr->sin_addr.s_addr = INADDR_ANY; in ToSockAddr() 268 saddr->sin_addr = ip_.ipv4_address(); in ToSockAddr() 275 SetIP(NetworkToHost32(saddr.sin_addr.s_addr)); in FromSockAddr() 295 saddr->sin_addr = ip.ipv4_address(); in ToSockAddrStorageHelper() 317 *out = SocketAddress(IPAddress(saddr->sin_addr), in SocketAddressFromSockAddrStorage()
|