/system/extras/tests/bionic/libc/common/ |
test_udp.c | 66 if (inet_aton(optName+1, &si_other.sin_addr) == 0) 68 address = si_other.sin_addr.s_addr; 83 si_me.sin_addr.s_addr = address; 87 printf("UDP server listening on %s:%d\n", inet_ntoa(si_me.sin_addr), udpPort); 92 inet_ntoa(si_other.sin_addr), ntohs(si_other.sin_port), buf); 106 si_other.sin_addr.s_addr = address; 108 printf("UDP client sending packets to %s:%d\n", inet_ntoa(si_other.sin_addr), udpPort);
|
/external/qemu/slirp/ |
bootp.c | 192 daddr.sin_addr = *preq_addr; 197 bc = get_new_addr(&daddr.sin_addr, client_ethaddr); 207 daddr.sin_addr = *preq_addr; 210 daddr.sin_addr.s_addr = 0; 213 bc = find_addr(&daddr.sin_addr, bp->bp_hwaddr); 221 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS); 232 rbp->bp_yiaddr = daddr.sin_addr; /* Client IP address */ 233 rbp->bp_siaddr = saddr.sin_addr; /* Server IP address */ 242 ntohl(daddr.sin_addr.s_addr)); 260 memcpy(q, &saddr.sin_addr, 4) [all...] |
udp.c | 265 DEBUG_ARG("saddr = %lx", (long)saddr->sin_addr.s_addr); 266 DEBUG_ARG("daddr = %lx", (long)daddr->sin_addr.s_addr); 284 ui->ui_src = saddr->sin_addr; 285 ui->ui_dst = daddr->sin_addr; 319 saddr.sin_addr.s_addr = alias_addr.s_addr; 320 else if (addr->sin_addr.s_addr == loopback_addr.s_addr || 322 saddr.sin_addr.s_addr = so->so_faddr.s_addr; 324 daddr.sin_addr = so->so_laddr; 343 addr.sin_addr.s_addr = INADDR_ANY; 471 OTOSIN(omsg, ctl_addr)->sin_addr = our_addr [all...] |
ip_input.c | 549 ipaddr.sin_addr = ip->ip_dst; 575 bcopy((caddr_t)(cp + off), (caddr_t)&ipaddr.sin_addr, 576 sizeof(ipaddr.sin_addr)); 583 ia = ip_rtaddr(ipaddr.sin_addr); 589 ip->ip_dst = ipaddr.sin_addr; 590 bcopy((caddr_t)&(IA_SIN(ia)->sin_addr), 610 bcopy((caddr_t)(&ip->ip_dst), (caddr_t)&ipaddr.sin_addr, 611 sizeof(ipaddr.sin_addr)); 617 (ia = ip_rtaddr(ipaddr.sin_addr)) == 0) { 622 bcopy((caddr_t)&(IA_SIN(ia)->sin_addr), [all...] |
/external/wpa_supplicant_8/src/wps/ |
wps_er_ssdp.c | 39 er->filter_addr.s_addr != addr.sin_addr.s_addr) 43 inet_ntoa(addr.sin_addr)); 110 wps_er_ap_cache_settings(er, &addr.sin_addr); 111 wps_er_ap_remove(er, &addr.sin_addr); 123 location, inet_ntoa(addr.sin_addr), max_age); 125 wps_er_ap_add(er, uuid, &addr.sin_addr, location, max_age); 149 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS);
|
http_server.c | 49 inet_ntoa(req->cli.sin_addr), 55 "completely", inet_ntoa(req->cli.sin_addr), 138 inet_ntoa(req->cli.sin_addr), 214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); 254 sin.sin_addr.s_addr = addr->s_addr;
|
/external/wpa_supplicant_8/wpa_supplicant/ |
ctrl_iface_udp.c | 68 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); 81 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 84 "%s:%d", inet_ntoa(from->sin_addr), 111 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 114 "level %s:%d", inet_ntoa(from->sin_addr), 168 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { 176 "source %s", inet_ntoa(from.sin_addr)); 294 addr.sin_addr.s_addr = INADDR_ANY [all...] |
/external/iputils/ |
rdisc.c | 224 return (sin->sin_addr.s_addr == INADDR_BROADCAST); 229 return IN_CLASSD(ntohl(sin->sin_addr.s_addr)); 423 to->sin_addr.s_addr = inet_addr(sendaddress); 427 joinaddr.sin_addr.s_addr = inet_addr(recvaddress); 548 pr_name(sin->sin_addr)); 593 pr_name(sin->sin_addr)); 631 if ((sin->sin_addr.s_addr & ifp->netmask.s_addr) == 635 pr_name(sin->sin_addr)); 732 pr_name(from->sin_addr)); 755 pr_name(from->sin_addr)); [all...] |
ping.c | 202 ptr = (__u8*)&source.sin_addr; 212 if (inet_pton(AF_INET, optarg, &source.sin_addr) > 0) 265 if (inet_aton(target, &whereto.sin_addr) == 1) { 295 memcpy(&whereto.sin_addr, hp->h_addr, 4); 311 route[nroute++] = whereto.sin_addr.s_addr; 316 if (source.sin_addr.s_addr == 0) { 337 if (IN_MULTICAST(ntohl(dst.sin_addr.s_addr))) { 362 dst.sin_addr.s_addr = route[0]; 405 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, 406 &source.sin_addr, sizeof(source.sin_addr)) [all...] |
/external/libppp/src/ |
arp.c | 129 arpmsg.dst.sin_addr.s_addr = addr.s_addr; 191 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; 211 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; 296 strncpy(a, inet_ntoa(netmask->sin_addr), sizeof a - 1); 299 inet_ntoa(ifa->sin_addr), a); 302 if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) == 303 (ipaddr.s_addr & netmask->sin_addr.s_addr)) {
|
tcp.c | 69 dest.sin_addr = GetIpAddr(host); 70 if (dest.sin_addr.s_addr == INADDR_NONE) { 200 inet_ntoa(sock.sin_addr), ntohs(sock.sin_port));
|
/external/chromium_org/net/dns/ |
dns_config_service_posix_unittest.cc | 50 inet_pton(AF_INET, kNameserversIPv4[i], &sa.sin_addr); 139 sa.sin_addr.s_addr = INADDR_ANY; 141 sa.sin_addr.s_addr = 0xCAFE1337; 149 sa.sin_addr.s_addr = 0xDEADBEEF;
|
/external/chromium_org/sandbox/win/sandbox_poc/pocdll/ |
network.cc | 37 service.sin_addr.s_addr = inet_addr("127.0.0.1");
|
/frameworks/opt/net/voip/src/jni/rtp/ |
util.cpp | 43 if (inet_pton(AF_INET, address, &(sin->sin_addr)) > 0) {
|
/system/core/libcutils/ |
socket_inaddr_any_server.c | 45 addr.sin_addr.s_addr = htonl(INADDR_ANY);
|
socket_loopback_client.c | 46 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
socket_loopback_server.c | 45 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
socket_network_client.c | 52 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length);
|
/external/valgrind/main/none/tests/ |
fdleak_ipv4.c | 26 addr.sin_addr.s_addr = inet_addr("127.0.0.1"); 46 addr.sin_addr.s_addr = inet_addr("127.0.0.1");
|
/external/qemu/slirp-android/ |
ip_input.c | 549 ipaddr.sin_addr = ip->ip_dst; 575 bcopy((caddr_t)(cp + off), (caddr_t)&ipaddr.sin_addr, 576 sizeof(ipaddr.sin_addr)); 583 ia = ip_rtaddr(ipaddr.sin_addr); 589 ip->ip_dst = ipaddr.sin_addr; 590 bcopy((caddr_t)&(IA_SIN(ia)->sin_addr), 610 bcopy((caddr_t)(&ip->ip_dst), (caddr_t)&ipaddr.sin_addr, 611 sizeof(ipaddr.sin_addr)); 617 (ia = ip_rtaddr(ipaddr.sin_addr)) == 0) { 622 bcopy((caddr_t)&(IA_SIN(ia)->sin_addr), [all...] |
/cts/tests/tests/net/jni/ |
NativeDnsJni.c | 46 inet_ntop(current->ai_family, &((struct sockaddr_in *)current->ai_addr)->sin_addr, 79 inet_ntop(current->ai_family, &((struct sockaddr_in *)current->ai_addr)->sin_addr, 104 inet_pton(AF_INET, GoogleDNSIpV4Address, &(sa4.sin_addr));
|
/external/chromium/third_party/libevent/ |
evutil.c | 103 listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 137 || listen_addr.sin_addr.s_addr != connect_addr.sin_addr.s_addr
|
/external/chromium_org/net/base/ |
address_list_unittest.cc | 54 memset(&addr->sin_addr, i, kIPv4AddressSize); 102 offsetof(struct sockaddr_in, sin_addr), 116 offsetof(struct sockaddr_in, sin_addr),
|
/external/chromium_org/third_party/libevent/ |
evutil.c | 103 listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 137 || listen_addr.sin_addr.s_addr != connect_addr.sin_addr.s_addr
|
/external/dropbear/ |
fake-rfc2553.c | 61 if (strlcpy(host, inet_ntoa(sin->sin_addr), 67 hp = gethostbyaddr((char *)&sin->sin_addr, 135 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
|