/external/webkit/Source/WebKit/android/wds/client/ |
ClientUtils.cpp | 34 inet_pton(AF_INET, "127.0.0.1", &addr.sin_addr);
|
/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/quake/quake/src/WinQuake/ |
net_mp.cpp | 103 ((struct sockaddr_in *)&broadcastaddr)->sin_addr.s_addr = INADDR_BROADCAST;
162 address.sin_addr.s_addr = INADDR_ANY;
237 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr);
339 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr);
355 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr);
369 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr;
371 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr;
382 hostentry = gethostbyaddr ((char *)&((struct sockaddr_in *)addr)->sin_addr, sizeof(struct in_addr), AF_INET);
408 ((struct sockaddr_in *)addr)->sin_addr.s_addr = *(int *)hostentry->h_addr_list[0];
420 if (((struct sockaddr_in *)addr1)->sin_addr.s_addr != ((struct sockaddr_in *)addr2)->sin_addr.s_addr) [all...] |
net_udp.cpp | 101 *addr = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr; 109 *mask = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr; 179 temp.sin_addr.s_addr = INADDR_BROADCAST; 243 address.in.sin_addr.s_addr = INADDR_ANY; 318 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); 412 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr); 428 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr); 442 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr; 444 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr; 455 hostentry = gethostbyaddr ((char *)&((struct sockaddr_in *)addr)->sin_addr, sizeof(struct in_addr), AF_INET) [all...] |
net_wins.cpp | 238 ((struct sockaddr_in *)&broadcastaddr)->sin_addr.s_addr = INADDR_BROADCAST;
294 address.sin_addr.s_addr = myAddr;
368 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr);
471 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr);
487 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr);
501 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr;
503 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr;
514 hostentry = pgethostbyaddr ((char *)&((struct sockaddr_in *)addr)->sin_addr, sizeof(struct in_addr), AF_INET);
540 ((struct sockaddr_in *)addr)->sin_addr.s_addr = *(int *)hostentry->h_addr_list[0];
552 if (((struct sockaddr_in *)addr1)->sin_addr.s_addr != ((struct sockaddr_in *)addr2)->sin_addr.s_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);
|
/external/quake/quake/src/QW/qwfwd/ |
misc.c | 34 a.sin_addr.S_un.S_un_b.s_b1, 35 a.sin_addr.S_un.S_un_b.s_b2, 36 a.sin_addr.S_un.S_un_b.s_b3, 37 a.sin_addr.S_un.S_un_b.s_b4, 51 a.sin_addr.S_un.S_un_b.s_b1 = b1; 52 a.sin_addr.S_un.S_un_b.s_b2 = b2; 53 a.sin_addr.S_un.S_un_b.s_b3 = b3; 54 a.sin_addr.S_un.S_un_b.s_b4 = b4; 62 if (a.sin_addr.s_addr == b.sin_addr.s_addr [all...] |
qwfwd.c | 126 memcpy((char *)&sin.sin_addr, phe->h_addr, phe->h_length);
127 else if((sin.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE)
189 address.sin_addr.s_addr = INADDR_ANY;
216 if (memcmp(&p->sin.sin_addr, &fsin.sin_addr, sizeof(p->sin.sin_addr)) == 0 &&
224 printf("peer %s:%d added", inet_ntoa(fsin.sin_addr), (int)ntohs(fsin.sin_port));
253 printf("peer %s:%d removed (timeout)", inet_ntoa(p->sin.sin_addr), (int)ntohs(p->sin.sin_port));
259 printf ("peer %s:%d removed (timeout)", inet_ntoa(p->sin.sin_addr), (int)ntohs(p->sin.sin_port));
|
/gdk/samples/quake/jni/ |
net_udp.cpp | 101 *addr = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr; 109 *mask = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr; 179 temp.sin_addr.s_addr = INADDR_BROADCAST; 243 address.in.sin_addr.s_addr = INADDR_ANY; 318 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); 412 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr); 428 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr); 442 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr; 444 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr; 455 hostentry = gethostbyaddr ((char *)&((struct sockaddr_in *)addr)->sin_addr, sizeof(struct in_addr), AF_INET) [all...] |
/external/bluetooth/hcidump/parser/ |
tcpip.c | 62 memcpy(&sai.sin_addr, &arp->arp_spa, sizeof(sai.sin_addr)); 70 memcpy(&sai.sin_addr, &arp->arp_tpa, sizeof(sai.sin_addr)); 95 memcpy(&sai.sin_addr, &ip->ip_src, sizeof(struct in_addr)); 98 memcpy(&sai.sin_addr, &ip->ip_dst, sizeof(struct in_addr));
|
/external/wpa_supplicant_6/wpa_supplicant/ |
ctrl_iface_udp.c | 74 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); 87 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 95 "%s:%d", inet_ntoa(from->sin_addr), 117 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 120 "level %s:%d", inet_ntoa(from->sin_addr), 172 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { 180 "source %s", inet_ntoa(from.sin_addr)); 294 addr.sin_addr.s_addr = htonl((127 << 24) | 1) [all...] |
/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 && 89 "%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), 166 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { 174 "source %s", inet_ntoa(from.sin_addr)); 288 addr.sin_addr.s_addr = htonl((127 << 24) | 1) [all...] |
/external/quake/quake/src/QW/client/ |
net_udp.c | 66 *(int *)&s->sin_addr = *(int *)&a->ip; 72 *(int *)&a->ip = *(int *)&s->sin_addr; 143 *(int *)&sadr.sin_addr = inet_addr(copy); 149 *(int *)&sadr.sin_addr = *(int *)h->h_addr_list[0]; 249 address.sin_addr.s_addr = inet_addr(com_argv[i+1]); 251 inet_ntoa(address.sin_addr)); 253 address.sin_addr.s_addr = INADDR_ANY;
|
net_wins.c | 43 *(int *)&s->sin_addr = *(int *)&a->ip; 49 *(int *)&a->ip = *(int *)&s->sin_addr; 119 *(int *)&sadr.sin_addr = inet_addr(copy); 125 *(int *)&sadr.sin_addr = *(int *)h->h_addr_list[0]; 247 address.sin_addr.s_addr = inet_addr(com_argv[i+1]); 249 inet_ntoa(address.sin_addr)); 251 address.sin_addr.s_addr = INADDR_ANY;
|
/external/webkit/Source/WebKit/android/wds/ |
Connection.cpp | 62 addr.sin_addr.s_addr = htonl(INADDR_ANY);
|
/frameworks/base/voip/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...] |