/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 …]
|
D | clockdiff.c | 618 memcpy(&(server.sin_addr.s_addr), hp->h_addr, 4); in main() 638 ((__u32*)(rspace+4))[0*2] = myaddr.sin_addr.s_addr; in main() 639 ((__u32*)(rspace+4))[1*2] = server.sin_addr.s_addr; in main() 640 ((__u32*)(rspace+4))[2*2] = myaddr.sin_addr.s_addr; in main() 642 ((__u32*)(rspace+4))[2*2] = server.sin_addr.s_addr; in main() 643 ((__u32*)(rspace+4))[3*2] = myaddr.sin_addr.s_addr; in main()
|
/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()
|
D | wps_upnp_ssdp.c | 245 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in advertisement_state_machine_stop() 294 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in advertisement_state_machine_handler() 404 a->state, inet_ntoa(a->client.sin_addr), in msearchreply_state_machine_handler() 419 inet_ntoa(a->client.sin_addr), in msearchreply_state_machine_handler() 718 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf); in ssdp_listener_handler() 749 addr.sin_addr.s_addr = htonl(INADDR_ANY); in ssdp_listener_open() 827 sin->sin_addr.s_addr = inet_addr(SSDP_TARGET); in add_ssdp_network() 831 sin->sin_addr.s_addr = inet_addr(SSDP_NETMASK); in add_ssdp_network()
|
/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/toybox/toys/pending/ |
D | route.c | 61 sockin->sin_addr.s_addr = INADDR_ANY; in get_hostname() 65 if (inet_aton(ipstr, &sockin->sin_addr)) return 0; in get_hostname() 67 memcpy(&sockin->sin_addr, host->h_addr_list[0], sizeof(struct in_addr)); in get_hostname() 173 (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr) in is_prefix() 200 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in get_next_params() 239 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in verify_netmask() 240 …unsigned int router_addr = ~(unsigned int)(((struct sockaddr_in *)&((rt)->rt_dst))->sin_addr.s_add… in verify_netmask() 247 addr_mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in verify_netmask() 280 (((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 …]
|
D | tftp.c | 84 ((struct sockaddr_in *)server)->sin_addr.s_addr = 85 ((struct sockaddr_in *)&TT.inaddr)->sin_addr.s_addr; 235 if (((struct sockaddr_in *)server)->sin_addr.s_addr != in read_ack() 236 ((struct sockaddr_in *)&from)->sin_addr.s_addr) { in read_ack() 294 memcmp(&((struct sockaddr_in *)&server)->sin_addr, in file_get() 295 &((struct sockaddr_in *)&from)->sin_addr, in file_get()
|
/external/libpcap/tests/ |
D | findalldevstest.c | 80 inet_ntoa(((struct sockaddr_in *)(a->addr))->sin_addr)); in ifprint() 83 inet_ntoa(((struct sockaddr_in *)(a->netmask))->sin_addr)); in ifprint() 86 inet_ntoa(((struct sockaddr_in *)(a->broadaddr))->sin_addr)); in ifprint() 89 inet_ntoa(((struct sockaddr_in *)(a->dstaddr))->sin_addr)); in ifprint()
|
/external/dnsmasq/src/ |
D | tftp.c | 96 addr.sin_addr.s_addr = 0; in tftp_request() 102 addr.sin_addr = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_spec_dst; in tftp_request() 109 addr.sin_addr = *((struct in_addr *)CMSG_DATA(cmptr)); in tftp_request() 117 addr.sin_addr = *((struct in_addr *)CMSG_DATA(cmptr)); in tftp_request() 124 addr.sin_addr.s_addr == 0 || in tftp_request() 125 !iface_check(AF_INET, (struct all_addr *)&addr.sin_addr, name, &if_index)) in tftp_request() 194 len = tftp_err(ERR_ILL, packet, _("unsupported request from %s"), inet_ntoa(peer.sin_addr)); in tftp_request() 244 strncat(daemon->namebuff, inet_ntoa(peer.sin_addr), (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request() 282 …my_syslog(MS_TFTP | LOG_INFO, _("TFTP sent %s to %s"), daemon->namebuff, inet_ntoa(peer.sin_addr)); in tftp_request() 418 inet_ntoa(transfer->peer.sin_addr)); in check_tftp_listeners() [all …]
|
D | dhcp.c | 71 saddr.sin_addr.s_addr = INADDR_ANY; in dhcp_init() 211 iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr; in dhcp_packet() 230 iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr; in dhcp_packet() 271 dest.sin_addr = mess->giaddr; in dhcp_packet() 279 if ((!is_inform && dest.sin_addr.s_addr != mess->ciaddr.s_addr) || in dhcp_packet() 280 dest.sin_port == 0 || dest.sin_addr.s_addr == 0) in dhcp_packet() 283 dest.sin_addr = mess->ciaddr; in dhcp_packet() 301 dest.sin_addr.s_addr = INADDR_BROADCAST; in dhcp_packet() 309 dest.sin_addr = mess->yiaddr; in dhcp_packet() 322 dest.sin_addr.s_addr = INADDR_BROADCAST; in dhcp_packet() [all …]
|
/external/webrtc/webrtc/base/ |
D | ifaddrs_converter.cc | 26 reinterpret_cast<sockaddr_in*>(interface->ifa_addr)->sin_addr); in ConvertIfAddrsToIPAddress() 28 reinterpret_cast<sockaddr_in*>(interface->ifa_netmask)->sin_addr); in ConvertIfAddrsToIPAddress()
|
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()
|
D | ifaddrs-android.cc | 72 memcpy(&sa->sin_addr, data, len); in set_addresses() 91 memset(&mask->sin_addr, 0, sizeof(in_addr)); in make_prefixes() 96 prefix = reinterpret_cast<char*>(&mask->sin_addr); in make_prefixes()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 106 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 107 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 160 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 161 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 225 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 226 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 468 memcpy(&sin->sin_addr, &pi->ipi_addr, 469 sizeof(sin->sin_addr)); 504 memcpy(&sin->sin_addr, CMSG_DATA(cm), 505 sizeof(sin->sin_addr)); [all …]
|
/external/libevent/ |
D | evutil.c | 235 listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in evutil_ersatz_socketpair() 268 || listen_addr.sin_addr.s_addr != connect_addr.sin_addr.s_addr in evutil_ersatz_socketpair() 573 r = evutil_inet_pton(AF_INET, "18.244.0.188", &sin.sin_addr); in evutil_check_interfaces() 590 ev_uint32_t addr = ntohl(sin_out.sin_addr.s_addr); in evutil_check_interfaces() 594 evutil_inet_ntop(AF_INET, &sin_out.sin_addr, in evutil_check_interfaces() 866 sin.sin_addr.s_addr = htonl(0x7f000001); in evutil_getaddrinfo_common() 902 if (1==evutil_inet_pton(AF_INET, nodename, &sin.sin_addr)) { in evutil_getaddrinfo_common() 1003 addrp = &sin.sin_addr; in addrinfo_from_hostent() 1004 if (ent->h_length != sizeof(sin.sin_addr)) { in addrinfo_from_hostent() 1886 if (1 != evutil_inet_pton(AF_INET, addr_part, &sin.sin_addr)) in evutil_parse_sockaddr_port() [all …]
|
/external/valgrind/none/tests/ |
D | fdleak_ipv4.c | 26 addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in server() 46 addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client()
|
/external/parameter-framework/asio-1.10.6/include/asio/ip/detail/impl/ |
D | endpoint.ipp | 33 data_.v4.sin_addr.s_addr = ASIO_OS_DEF(INADDR_ANY); 45 data_.v4.sin_addr.s_addr = ASIO_OS_DEF(INADDR_ANY); 75 data_.v4.sin_addr.s_addr = 139 data_.v4.sin_addr.s_addr));
|
/external/avahi/avahi-autoipd/ |
D | iface-bsd.c | 415 link_local = IN_LINKLOCAL(ntohl(sin->sin_addr.s_addr)); in rtm_dispatch_newdeladdr() 419 inet_ntoa(sin->sin_addr), link_local ? "link local" : "routable"); in rtm_dispatch_newdeladdr() 425 if (ap->address == sin->sin_addr.s_addr) in rtm_dispatch_newdeladdr() 434 ap->address = sin->sin_addr.s_addr; in rtm_dispatch_newdeladdr()
|
/external/libvncserver/libvncclient/ |
D | sockets.c | 331 addr.sin_addr.s_addr = host; in ConnectClientToTcpAddr() 462 addr.sin_addr.s_addr = htonl(INADDR_ANY); in FindFreeTcpPort() 514 addr.sin_addr.s_addr = inet_addr(address); in ListenAtTcpPortAndAddress() 516 addr.sin_addr.s_addr = htonl(INADDR_ANY); in ListenAtTcpPortAndAddress() 757 return (peeraddr.sin_addr.s_addr == myaddr.sin_addr.s_addr);
|
/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 199 addr.sin_addr.s_addr = iapp->multicast.s_addr; in iapp_send_add() 280 inet_ntoa(from->sin_addr), ntohs(from->sin_port), in iapp_process_add_notify() 323 if (from.sin_addr.s_addr == iapp->own.s_addr) in iapp_receive_udp() 329 len, inet_ntoa(from.sin_addr), in iapp_receive_udp() 426 iapp->own.s_addr = paddr->sin_addr.s_addr; in iapp_init()
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd.c | 774 VLog("Successful update from %s", inet_ntop(AF_INET, &request->src.sin_addr, buf, 32)); in SuccessfulUpdateTransaction() 778 VLog("Request %s: %s", inet_ntop(AF_INET, &request->src.sin_addr, buf, 32), vlogmsg); in SuccessfulUpdateTransaction() 853 …Log("Update from %s, Expires in %d:%d:%d\n\t%s", inet_ntop(AF_INET, &ptr->cli.sin_addr, addrbuf, 1… in PrintLeaseTable() 928 …pkt.src.sin_addr.s_addr = zerov4Addr.NotAnInteger; // address field set solely for verbose logging… in UpdateSRV() 1076 d->addr.sin_addr.s_addr = zerov4Addr.NotAnInteger; in ProcessArgs() 1087 inet_pton( AF_INET, LOOPBACK, &d->ns_addr.sin_addr ); in ProcessArgs() 1197 self->llq_addr.sin_addr.s_addr = zerov4Addr.NotAnInteger; in SetupSockets() 1247 daddr.sin_addr.s_addr = zerov4Addr.NotAnInteger; in SetupSockets() 1322 …pkt.src.sin_addr.s_addr = zerov4Addr.NotAnInteger; // address field set solely for verbose logging… in DeleteOneRecord() 1459 tmp->cli.sin_addr = pkt->src.sin_addr; in UpdateLeaseTable() [all …]
|