Home
last modified time | relevance | path

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

12345678910>>...24

/netbsd/sys/netinet/
H A Din.c470 ifra->ifra_addr.sin_addr)) in in_control0()
799 in_hosteq(ia->ia_dstaddr.sin_addr, ia->ia_addr.sin_addr))) in in_ifaddlocal()
831 if (!in_hosteq(p->ia_addr.sin_addr, ia->ia_addr.sin_addr)) in in_ifremlocal()
1171 !in_hosteq(ia->ia_addr.sin_addr, oldaddr.sin_addr); in in_ifinit()
1174 !in_hosteq(ia->ia_dstaddr.sin_addr, olddst.sin_addr); in in_ifinit()
1227 i = ia->ia_addr.sin_addr.s_addr; in in_ifinit()
1328 p = ia->ia_dstaddr.sin_addr; in in_addprefix()
1330 p = ia->ia_addr.sin_addr; in in_addprefix()
1411 p = ia->ia_dstaddr.sin_addr; in in_scrubprefix()
1413 p = ia->ia_addr.sin_addr; in in_scrubprefix()
[all …]
H A Din_pcb.c333 ia = in_get_ia(sin->sin_addr); in inpcb_bindableaddr()
362 in4p_laddr(inp) = sin->sin_addr; in inpcb_bind_addr()
435 (!in_nullhost(sin->sin_addr) || in inpcb_bind_port()
442 if ((!in_nullhost(sin->sin_addr) in inpcb_bind_port()
553 if (in_nullhost(sin->sin_addr)) { in inpcb_connect()
555 sin->sin_addr = in inpcb_connect()
562 sin->sin_addr = in inpcb_connect()
563 ia->ia_broadaddr.sin_addr; in inpcb_connect()
608 laddr = IA_SIN(ia)->sin_addr; in inpcb_connect()
632 in4p_faddr(inp) = sin->sin_addr; in inpcb_connect()
[all …]
/netbsd/regress/sys/compat/
H A Duipc_syscalls_43.c50 sa.sin_addr.s_addr = inet_addr(echoserver); in main()
64 inet_ntoa(sa.sin_addr), in main()
76 inet_ntoa(sa.sin_addr), in main()
99 sa.sin_addr.s_addr = INADDR_ANY; in main()
113 inet_ntoa(sa.sin_addr), in main()
117 sa.sin_addr.s_addr = inet_addr(echoserver); in main()
133 inet_ntoa(sa.sin_addr), in main()
145 sa.sin_addr.s_addr = INADDR_ANY; in main()
151 sa.sin_addr.s_addr = inet_addr(echoserver); in main()
175 inet_ntoa(sa.sin_addr), in main()
/netbsd/usr.sbin/bootp/bootpgw/
H A Dbootpgw.c334 memcpy(&serv_addr.sin_addr, hep->h_addr, in main()
335 sizeof(serv_addr.sin_addr)); in main()
398 bind_addr.sin_addr.s_addr = INADDR_ANY; in main()
448 inet_ntoa(clnt_addr.sin_addr)); in main()
510 inet_ntoa(clnt_addr.sin_addr)); in handle_request()
521 inet_ntoa(clnt_addr.sin_addr)); in handle_request()
542 ifr = getif(s, &clnt_addr.sin_addr); in handle_request()
545 inet_ntoa(clnt_addr.sin_addr)); in handle_request()
549 bp->bp_giaddr = sip->sin_addr; in handle_request()
618 bp->bp_giaddr = sip->sin_addr; in handle_reply()
[all …]
/netbsd/usr.sbin/mountd/
H A Dget_net.c83 mask = (u_int8_t *)&((struct sockaddr_in *)sa)->sin_addr; in countones()
137 sin.sin_addr = inet_makeaddr(np->n_net, 0); in get_net()
147 sin.sin_addr = inet_makeaddr(inet_network(cp), 0); in get_net()
150 cp, sin.sin_addr.s_addr); in get_net()
200 if (IN_CLASSA(sinp->sin_addr.s_addr)) in get_net()
202 else if (IN_CLASSB(sinp->sin_addr.s_addr)) in get_net()
204 else if (IN_CLASSC(sinp->sin_addr.s_addr)) in get_net()
206 else if (IN_CLASSD(sinp->sin_addr.s_addr)) in get_net()
/netbsd/usr.sbin/arp/
H A Darp.c105 .sin_addr = {
334 if (sina->sin_addr.s_addr == sin_m.sin_addr.s_addr) { in set()
378 if (getinetaddr(host, &sin.sin_addr) == -1) in get()
380 dump(sin.sin_addr.s_addr); in get()
470 if (addr != sina->sin_addr.s_addr) in dump()
476 &(sina->sin_addr), in dump()
477 sizeof sina->sin_addr, AF_INET); in dump()
499 if (sina->sin_addr.s_addr == 0xffffffff) in dump()
508 nbi = getnbrinfo(ifname, &sina->sin_addr); in dump()
604 sina->sin_addr.s_addr != sin_m.sin_addr.s_addr) in delete()
[all …]
/netbsd/usr.sbin/timed/timed/
H A Dreadmsg.c132 if ((ntp->mask & from.sin_addr.s_addr) == in readmsg()
149 if (ptr->addr.sin_addr.s_addr in readmsg()
150 == from.sin_addr.s_addr in readmsg()
222 inet_ntoa(from.sin_addr)); in readmsg()
239 "in packet from %s", inet_ntoa(from.sin_addr)); in readmsg()
245 if ((ntp->mask & from.sin_addr.s_addr) == in readmsg()
457 msg->tsp_type, inet_ntoa(addr->sin_addr)); in print()
469 inet_ntoa(addr->sin_addr), in print()
484 inet_ntoa(addr->sin_addr), in print()
495 inet_ntoa(addr->sin_addr), in print()
[all …]
/netbsd/games/hunt/hunt/
H A Dserver.c153 if (sin->sin_addr.s_addr == daemons[j].sin_addr.s_addr) { in have_daemon_addr()
218 memcpy(&contactaddr.sin_addr, hp->h_addr, in send_messages()
219 sizeof(contactaddr.sin_addr)); in send_messages()
229 contactaddr.sin_addr = Daemon.sin_addr; in send_messages()
256 contactaddr.sin_addr = broadcastaddrs[i].sin_addr; in send_messages()
263 contactaddr.sin_addr = local_address; in send_messages()
/netbsd/external/bsd/wpa/dist/src/wps/
H A 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()
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()
/netbsd/usr.sbin/ldpd/
H A Dfsm.c85 memcpy(&traddr.sin.sin_addr, in run_ldp_hello()
99 memcpy(&traddr.sin.sin_addr, in run_ldp_hello()
137 ntohl(hi->transport_address.sin.sin_addr.s_addr) < in run_ldp_hello()
168 if (ntohl(sa->sin_addr.s_addr) >> 24 != IN_LOOPBACKNET) in build_address_list_tlv()
195 if (ntohl(sa->sin_addr.s_addr) >> 24 == IN_LOOPBACKNET) in build_address_list_tlv()
197 memcpy(ia + adrcount*sizeof(struct in_addr), &sa->sin_addr, in build_address_list_tlv()
235 if (ntohl(sa->sin_addr.s_addr) >> 24 == IN_LOOPBACKNET) in set_my_ldp_id()
237 if (ntohl(sa->sin_addr.s_addr) > ntohl(a.s_addr)) in set_my_ldp_id()
238 a.s_addr = sa->sin_addr.s_addr; in set_my_ldp_id()
/netbsd/external/bsd/wpa/dist/wpa_supplicant/
H A Dctrl_iface_udp.c134 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),
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),
633 "source %s", inet_ntoa(from.sin_addr));
740 addr.sin_addr.s_addr = INADDR_ANY;
[all …]
/netbsd/external/bsd/ntp/dist/tests/libntp/
H A Dsockaddrtest.c13 s.sa4.sin_addr.s_addr = inet_addr(address); in CreateSockaddr4()
32 && memcmp(&expected.sa4.sin_addr, &actual.sa4.sin_addr, in IsEqual()
37 strlcpy(buf[0], inet_ntoa(expected.sa4.sin_addr), sizeof(buf[0])); in IsEqual()
39 strlcpy(buf[2], inet_ntoa(actual.sa4.sin_addr) , sizeof(buf[2])); in IsEqual()
/netbsd/tests/net/config/
H A Dnetconfig.c100 sin->sin_addr.s_addr = inaddr; in netcfg_rump_if()
106 sin->sin_addr.s_addr = inmask; in netcfg_rump_if()
112 sin->sin_addr.s_addr = inaddr | ~inmask; in netcfg_rump_if()
158 sinstore.sin_addr.s_addr = inet_addr(dst); in netcfg_rump_route()
166 sinstore.sin_addr.s_addr = inet_addr(gw); in netcfg_rump_route()
174 sinstore.sin_addr.s_addr = inet_addr(mask); in netcfg_rump_route()
214 sin.sin_addr.s_addr = inet_addr(dst); in netcfg_rump_pingtest()
/netbsd/sbin/routed/
H A Doutput.c213 inet_ntoa(osin.sin_addr), in output()
333 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write()
409 naddr_ntoa(ws.to.sin_addr in supply_out()
498 if (on_net(ws.to.sin_addr.s_addr, in walk_supply()
513 if (on_net(ws.to.sin_addr.s_addr, in walk_supply()
711 rt = rtfind(dst->sin_addr.s_addr); in supply()
870 dst.sin_addr.s_addr = ifp->int_brdaddr; in rip_bcast()
881 dst.sin_addr.s_addr = ifp->int_dstaddr; in rip_bcast()
893 dst.sin_addr.s_addr = ifp->int_addr; in rip_bcast()
962 dst.sin_addr.s_addr = ifp->int_brdaddr; in rip_query()
[all …]
/netbsd/external/bsd/ipf/dist/samples/
H A Dproxy.c93 natlook.nl_outip = sin.sin_addr;
94 natlook.nl_inip = sloc.sin_addr;
164 usin.sin_addr = nlp->nl_realip;
170 printf("local IP# to use: %s\n", inet_ntoa(usin.sin_addr));
182 nat->nat_inip = usin.sin_addr;
186 sum1 = LONG_SUM(ntohl(usin.sin_addr.s_addr)) + ntohs(usin.sin_port);
192 sum1 = LONG_SUM(ntohl(usin.sin_addr.s_addr));
218 usin.sin_addr = nlp->nl_realip;
220 printf("remote end for connection: %s,%d\n", inet_ntoa(usin.sin_addr),
/netbsd/share/examples/rump/virtual_ip_router/
H A Drumprouter.c90 sin->sin_addr.s_addr = inet_addr(addr); in configure_interface()
96 sin->sin_addr.s_addr = inet_addr(mask); in configure_interface()
102 sin->sin_addr.s_addr = inet_addr(bcast); in configure_interface()
145 sinstore.sin_addr.s_addr = inet_addr(dst); in configure_routing()
153 sinstore.sin_addr.s_addr = inet_addr(gw); in configure_routing()
161 sinstore.sin_addr.s_addr = inet_addr(mask); in configure_routing()
/netbsd/usr.sbin/bootp/bootptest/
H A Dbootptest.c250 if (inet_aton(servername, &sin_server.sin_addr) == 0) { in main()
256 memcpy(&sin_server.sin_addr, hep->h_addr, in main()
257 sizeof(sin_server.sin_addr)); in main()
262 sin_server.sin_addr.s_addr = INADDR_ANY; in main()
284 sin_client.sin_addr.s_addr = INADDR_ANY; in main()
312 ifr = getif(s, &sin_server.sin_addr); in main()
417 printf("Recvd from %s", inet_ntoa(sin_from.sin_addr)); in main()
438 printf("Sending to %s", inet_ntoa(sin_server.sin_addr)); in send_request()
/netbsd/usr.sbin/ypbind/
H A Dypbind.c497 inet_ntoa(raddrp->sin_addr), dom_name); in rpc_received()
533 inet_ntoa(dom->dom_server_addr.sin_addr), in rpc_received()
538 inet_ntoa(dom->dom_server_addr.sin_addr), in rpc_received()
664 raddrp->sin_addr; in rpc_received()
806 dom->dom_server_addr.sin_addr.s_addr; in ypbindproc_domain_2()
810 inet_ntoa(dom->dom_server_addr.sin_addr), in ypbindproc_domain_2()
848 inet_ntoa(fromsin->sin_addr)); in ypbindproc_setdom_2()
880 bindsin.sin_addr = sd->ypsetdom_addr; in ypbindproc_setdom_2()
1055 bindsin.sin_addr = in; in broadcast()
1203 bindsin.sin_addr = in direct_set()
[all …]
/netbsd/external/bsd/ipf/dist/tools/
H A Dipfsyncd.c110 sin.sin_addr.s_addr = htonl(INADDR_UNSPEC_GROUP | 0x697066);
122 sin.sin_addr.s_addr = inet_addr(optarg);
323 debug(2, "binding to %s:%s\n", nicname, inet_ntoa(sinp->sin_addr));
325 if (IN_MULTICAST(ntohl(sinp->sin_addr.s_addr))) {
348 addr = reqip->sin_addr;
383 mreq.imr_multiaddr.s_addr = sinp->sin_addr.s_addr;
384 mreq.imr_interface.s_addr = reqip->sin_addr.s_addr;
390 sprintf(buffer, "%s,", inet_ntoa(sinp->sin_addr));
391 strcat(buffer, inet_ntoa(reqip->sin_addr));
446 syslog(LOG_INFO, "Sending data to %s", inet_ntoa(sinp->sin_addr));
[all …]
/netbsd/sys/nfs/
H A Dnfs_bootparam.c174 sin->sin_addr.s_addr = INADDR_BROADCAST; in nfs_bootparam()
183 printf("nfs_boot: server_addr=%s\n", inet_ntoa(sin->sin_addr)); in nfs_bootparam()
207 if (sin->sin_addr.s_addr == 0) in nfs_bootparam()
211 printf("nfs_boot: gateway=%s\n", inet_ntoa(sin->sin_addr)); in nfs_bootparam()
213 nd->nd_gwip = sin->sin_addr; in nfs_bootparam()
359 bpsin->sin_addr.s_addr = sin->sin_addr.s_addr; in bp_whoami()
462 sin->sin_addr = inaddr; in bp_getfile()
/netbsd/usr.bin/rump_dhcpclient/
H A Dif-bsd.c68 (((struct sockaddr_in *)(void *)sa)->sin_addr).s_addr : 0
153 memcpy(&_s.sin->sin_addr, _addr, sizeof(_s.sin->sin_addr)); \ in if_address()
203 memcpy (&su.sin.sin_addr, _a, sizeof(su.sin.sin_addr)); \ in if_route()
250 memcpy(&su.sin.sin_addr, &net->s_addr, sizeof(su.sin.sin_addr)); in if_route()
/netbsd/external/bsd/dhcpcd/dist/src/
H A Dsa.c63 return offsetof(struct sockaddr_in, sin_addr) + in sa_addroffset()
131 return satocsin(sa)->sin_addr.s_addr == INADDR_ANY; in sa_is_unspecified()
165 return sin->sin_addr.s_addr == INADDR_BROADCAST; in sa_is_allones()
197 return sin->sin_addr.s_addr == htonl(INADDR_LOOPBACK); in sa_is_loopback()
229 if (sin->sin_addr.s_addr == INADDR_ANY) { in sa_toprefix()
233 mask = ntohl(sin->sin_addr.s_addr); in sa_toprefix()
423 offset = offsetof(struct sockaddr_in, sin_addr); in sa_cmp()
469 sin->sin_addr.s_addr = addr->s_addr; in sa_in_init()
/netbsd/external/mpl/dhcp/dist/omapip/
H A Dconnection.c165 memcpy (&local_sin.sin_addr, in omapi_connect_list()
341 (sizeof remote.sin_addr)) * 2) { in trace_connect_input()
356 memcpy (&remote.sin_addr, s, sizeof remote.sin_addr); in trace_connect_input()
357 s += sizeof remote.sin_addr; in trace_connect_input()
358 memcpy (&local.sin_addr, s, sizeof local.sin_addr); in trace_connect_input()
359 s += sizeof local.sin_addr; in trace_connect_input()
383 inet_ntoa (local.sin_addr), in trace_connect_input()
404 if (!memcmp (&remote.sin_addr, in trace_connect_input()
406 sizeof remote.sin_addr) && in trace_connect_input()
678 memcpy (&c -> remote_addr.sin_addr, in omapi_connection_connect_internal()
[all …]
/netbsd/usr.sbin/traceroute/
H A Dtraceroute.c633 hostname, inet_ntoa(to->sin_addr)); in main()
673 gwlist[lsrr] = to->sin_addr.s_addr; in main()
688 outip->ip_dst = to->sin_addr; in main()
784 gwlist[lsrr] = to->sin_addr.s_addr; in main()
903 inet_ntoa(from->sin_addr)); in main()
906 outip->ip_src = from->sin_addr; in main()
969 lastaddr = from->sin_addr.s_addr; in main()
1425 inet_ntoa(from->sin_addr)); in packet_ok()
1718 sin->sin_addr.s_addr = addr; in setsin()
1813 help.sin_addr.s_addr = to->sin_addr.s_addr; in find_local_ip()
[all …]
/netbsd/external/mpl/dhcp/dist/common/
H A Dicmp.c154 memcpy (&to.sin_addr, addr -> iabuf, sizeof to.sin_addr); /* XXX */
199 inet_ntoa(to.sin_addr));
254 memcpy (ia.iabuf, &from.sin_addr, sizeof from.sin_addr);
255 ia.len = sizeof from.sin_addr;

12345678910>>...24