Home
last modified time | relevance | path

Searched refs:sin_addr (Results 1 – 25 of 201) sorted by relevance

123456789

/external/qemu/slirp/
Dbootp.c192 daddr.sin_addr = *preq_addr; in bootp_reply()
197 bc = get_new_addr(&daddr.sin_addr, client_ethaddr); in bootp_reply()
207 daddr.sin_addr = *preq_addr; in bootp_reply()
210 daddr.sin_addr.s_addr = 0; in bootp_reply()
213 bc = find_addr(&daddr.sin_addr, bp->bp_hwaddr); in bootp_reply()
221 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS); in bootp_reply()
232 rbp->bp_yiaddr = daddr.sin_addr; /* Client IP address */ in bootp_reply()
233 rbp->bp_siaddr = saddr.sin_addr; /* Server IP address */ in bootp_reply()
242 ntohl(daddr.sin_addr.s_addr)); in bootp_reply()
260 memcpy(q, &saddr.sin_addr, 4); in bootp_reply()
[all …]
Dudp.c265 DEBUG_ARG("saddr = %lx", (long)saddr->sin_addr.s_addr); in udp_output2()
266 DEBUG_ARG("daddr = %lx", (long)daddr->sin_addr.s_addr); in udp_output2()
284 ui->ui_src = saddr->sin_addr; in udp_output2()
285 ui->ui_dst = daddr->sin_addr; in udp_output2()
319 saddr.sin_addr.s_addr = alias_addr.s_addr; in udp_output()
320 else if (addr->sin_addr.s_addr == loopback_addr.s_addr || in udp_output()
322 saddr.sin_addr.s_addr = so->so_faddr.s_addr; in udp_output()
324 daddr.sin_addr = so->so_laddr; in udp_output()
343 addr.sin_addr.s_addr = INADDR_ANY; in udp_attach()
471 OTOSIN(omsg, ctl_addr)->sin_addr = our_addr; in udp_emu()
[all …]
Dip_input.c549 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 …]
Dtftp.c157 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_oack()
160 daddr.sin_addr = spt->client_ip; in tftp_send_oack()
197 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_error()
200 daddr.sin_addr = spt->client_ip; in tftp_send_error()
243 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_data()
246 daddr.sin_addr = spt->client_ip; in tftp_send_data()
Dsocket.c562 addr.sin_addr = dns_addr; in sosendto()
566 addr.sin_addr = loopback_addr; in sosendto()
570 addr.sin_addr = so->so_faddr; in sosendto()
573 … addr.sin_port=%d, addr.sin_addr.s_addr=%.16s\n", ntohs(addr.sin_port), inet_ntoa(addr.sin_addr))); in sosendto()
631 addr.sin_addr.s_addr = INADDR_ANY; in solisten()
654 if (addr.sin_addr.s_addr == 0 || addr.sin_addr.s_addr == loopback_addr.s_addr) in solisten()
657 so->so_faddr = addr.sin_addr; in solisten()
/external/iputils/
Drdisc.c224 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 …]
Dping.c202 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()
405 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, in main()
406 &source.sin_addr, sizeof(source.sin_addr))) in main()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_udp.c68 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
81 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && in wpa_supplicant_ctrl_iface_detach()
84 "%s:%d", inet_ntoa(from->sin_addr), in wpa_supplicant_ctrl_iface_detach()
111 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && in wpa_supplicant_ctrl_iface_level()
114 "level %s:%d", inet_ntoa(from->sin_addr), in wpa_supplicant_ctrl_iface_level()
168 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { in wpa_supplicant_ctrl_iface_receive()
176 "source %s", inet_ntoa(from.sin_addr)); in wpa_supplicant_ctrl_iface_receive()
294 addr.sin_addr.s_addr = INADDR_ANY; in wpa_supplicant_ctrl_iface_init()
296 addr.sin_addr.s_addr = htonl((127 << 24) | 1); in wpa_supplicant_ctrl_iface_init()
385 inet_ntoa(dst->addr.sin_addr), in wpa_supplicant_ctrl_iface_send()
[all …]
/external/wpa_supplicant_8/src/wps/
Dwps_er_ssdp.c39 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()
110 wps_er_ap_cache_settings(er, &addr.sin_addr); in wps_er_ssdp_rx()
111 wps_er_ap_remove(er, &addr.sin_addr); in wps_er_ssdp_rx()
123 location, inet_ntoa(addr.sin_addr), max_age); in wps_er_ssdp_rx()
125 wps_er_ap_add(er, uuid, &addr.sin_addr, location, max_age); in wps_er_ssdp_rx()
149 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in wps_er_send_ssdp_msearch()
Dhttp_client.c61 inet_ntoa(c->dst.sin_addr), in http_client_got_response()
67 inet_ntoa(c->dst.sin_addr), in http_client_got_response()
91 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()
217 if (inet_aton(addr, &dst->sin_addr) == 0) { in http_client_url_parse()
275 path, inet_ntoa(dst.sin_addr), in http_client_url()
Dhttp_server.c49 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()
254 sin.sin_addr.s_addr = addr->s_addr; in http_server_init()
Dwps_upnp_ssdp.c247 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in advertisement_state_machine_stop()
296 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in advertisement_state_machine_handler()
405 a->state, inet_ntoa(a->client.sin_addr), in msearchreply_state_machine_handler()
420 inet_ntoa(a->client.sin_addr), in msearchreply_state_machine_handler()
717 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf); in ssdp_listener_handler()
750 addr.sin_addr.s_addr = htonl(INADDR_ANY); in ssdp_listener_open()
829 sin->sin_addr.s_addr = inet_addr(SSDP_TARGET); in add_ssdp_network()
833 sin->sin_addr.s_addr = inet_addr(SSDP_NETMASK); in add_ssdp_network()
/external/libppp/src/
Darp.c129 arpmsg.dst.sin_addr.s_addr = addr.s_addr; in arp_ProxySub()
191 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; in arp_SetProxy()
211 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; in arp_ClearProxy()
296 strncpy(a, inet_ntoa(netmask->sin_addr), sizeof a - 1); in arp_EtherAddr()
299 inet_ntoa(ifa->sin_addr), a); in arp_EtherAddr()
302 if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) == in arp_EtherAddr()
303 (ipaddr.s_addr & netmask->sin_addr.s_addr)) { in arp_EtherAddr()
Dtcp.c69 dest.sin_addr = GetIpAddr(host); in tcp_OpenConnection()
70 if (dest.sin_addr.s_addr == INADDR_NONE) { in tcp_OpenConnection()
200 inet_ntoa(sock.sin_addr), ntohs(sock.sin_port)); in tcp_Create()
/external/qemu/slirp-android/
Dip_input.c549 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/dnsmasq/src/
Dtftp.c96 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 …]
Dnetwork.c100 tmp->addr.in.sin_addr.s_addr == addr->addr.addr4.s_addr) in iface_check()
177 !iface_check(AF_INET, (struct all_addr *)&addr->in.sin_addr, ifr.ifr_name, NULL)) in iface_allowed()
238 addr.in.sin_addr = broadcast; /* warning */ in iface_allowed_v4()
239 addr.in.sin_addr = local; in iface_allowed_v4()
328 addr.in.sin_addr.s_addr = INADDR_ANY; in create_wildcard_listeners()
652 addr.in.sin_addr.s_addr = INADDR_ANY; in random_sock()
722 addr->in.sin_addr.s_addr == INADDR_ANY && in allocate_sfd()
778 addr.in.sin_addr.s_addr = INADDR_ANY; in pre_allocate_sfds()
830 new->addr.in.sin_addr.s_addr == 0) in check_servers()
1042 if ((addr.in.sin_addr.s_addr = inet_addr(saddr)) != (in_addr_t) -1) in set_servers()
[all …]
/external/openssl/apps/
Ds_socket.c263 them.sin_addr.s_addr=htonl(addr); in init_client_ip()
337 server.sin_addr.s_addr=INADDR_ANY; in init_server_long()
341 memcpy(&server.sin_addr.s_addr,ip,4); in init_server_long()
343 memcpy(&server.sin_addr,ip,4); in init_server_long()
436 h1=gethostbyaddr((char *)&from.sin_addr.s_addr, in do_accept()
437 sizeof(from.sin_addr.s_addr),AF_INET); in do_accept()
439 h1=gethostbyaddr((char *)&from.sin_addr, in do_accept()
/external/chromium_org/third_party/openssl/openssl/apps/
Ds_socket.c263 them.sin_addr.s_addr=htonl(addr); in init_client_ip()
337 server.sin_addr.s_addr=INADDR_ANY; in init_server_long()
341 memcpy(&server.sin_addr.s_addr,ip,4); in init_server_long()
343 memcpy(&server.sin_addr,ip,4); in init_server_long()
436 h1=gethostbyaddr((char *)&from.sin_addr.s_addr, in do_accept()
437 sizeof(from.sin_addr.s_addr),AF_INET); in do_accept()
439 h1=gethostbyaddr((char *)&from.sin_addr, in do_accept()
/external/chromium_org/net/dns/
Ddns_config_service_posix_unittest.cc50 inet_pton(AF_INET, kNameserversIPv4[i], &sa.sin_addr); in InitializeResState()
139 sa.sin_addr.s_addr = INADDR_ANY; in TEST()
141 sa.sin_addr.s_addr = 0xCAFE1337; in TEST()
149 sa.sin_addr.s_addr = 0xDEADBEEF; in TEST()
/external/dhcpcd/
Dif-bsd.c73 (((struct sockaddr_in *)(void *)sa)->sin_addr).s_addr : 0
171 memcpy(&_s.sin->sin_addr, _addr, sizeof(_s.sin->sin_addr)); \ in if_address()
219 memcpy (&su.sin.sin_addr, _a, sizeof(su.sin.sin_addr)); \ in if_route()
303 sin_addr)); in get_addrs()
/external/chromium_org/net/base/
Daddress_list_unittest.cc54 memset(&addr->sin_addr, i, kIPv4AddressSize); in TEST()
102 offsetof(struct sockaddr_in, sin_addr), in TEST()
116 offsetof(struct sockaddr_in, sin_addr), in TEST()
/external/ipsec-tools/src/racoon/
Dsockmisc.c106 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/valgrind/main/none/tests/
Dfdleak_ipv4.c26 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/chromium_org/third_party/libjingle/source/talk/base/
Dsocketaddress.cc286 saddr->sin_addr.s_addr = INADDR_ANY; in ToSockAddr()
288 saddr->sin_addr = ip_.ipv4_address(); in ToSockAddr()
295 SetIP(NetworkToHost32(saddr.sin_addr.s_addr)); in FromSockAddr()
313 saddr->sin_addr = ip.ipv4_address(); in ToSockAddrStorageHelper()
376 *out = SocketAddress(IPAddress(saddr->sin_addr), in SocketAddressFromSockAddrStorage()

123456789