Home
last modified time | relevance | path

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

12345678910>>...15

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Darp.c232 sin->sin_addr.s_addr = inet_addr(host); in set()
233 if (sin->sin_addr.s_addr == (in_addr_t)-1) { in set()
240 (void) memcpy(&sin->sin_addr, hp->h_addr, in set()
241 sizeof (sin->sin_addr)); in set()
310 sin->sin_addr.s_addr = inet_addr(host); in get()
311 if (sin->sin_addr.s_addr == (in_addr_t)-1) { in get()
318 (void) memcpy(&sin->sin_addr, hp->h_addr, in get()
319 sizeof (sin->sin_addr)); in get()
330 host, inet_ntoa(sin->sin_addr)); in get()
341 inet_ntoa(sin->sin_addr), str); in get()
[all …]
H A Din.rwhod.c281 from.sin_addr.s_addr); in main()
457 &(((struct sockaddr_in *)np->n_addr)->sin_addr), in onalrm()
527 multicast_addr.sin_addr.s_addr = htonl(INADDR_WHOD_GROUP); in configure()
594 np->n_subnet = sin->sin_addr.s_addr & in configure()
596 sin_addr.s_addr; in configure()
626 ((struct sockaddr_in *)np->n_addr)->sin_addr.s_addr; in configure()
637 multicast_addr.sin_addr.s_addr = in configure()
687 if (sin2->sin_addr.s_addr == sin->sin_addr.s_addr) { in configure()
717 (void) printf("sendto %x.%d\n", ntohl(sin->sin_addr.s_addr), in sendto()
H A Dhostconfig.c296 sin->sin_addr.s_addr = router_addr.s_addr;
331 inet_ntoa(addr->sin_addr)); in bpanswer()
477 *ipp = ntohl(sin->sin_addr.s_addr);
481 dev, inet_ntoa(sin->sin_addr));
489 *maskp = ntohl(sin->sin_addr.s_addr);
494 inet_ntoa(sin->sin_addr));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c397 to->sin_addr.s_addr = inet_addr(sendaddress); in main()
398 if (to->sin_addr.s_addr == (unsigned long)-1) { in main()
405 g_joinaddr.sin_addr.s_addr = inet_addr(recvaddress); in main()
406 if (g_joinaddr.sin_addr.s_addr == (unsigned long)-1) { in main()
556 pr_name(sin->sin_addr)); in solicitor()
574 li = find_directly_connected_logint(sin->sin_addr, NULL); in solicitor()
615 pr_name(sin->sin_addr)); in advertise()
665 li_tmp = find_directly_connected_logint(sin->sin_addr, in advertise()
681 pr_name(sin->sin_addr)); in advertise()
774 pr_name(from->sin_addr)); in pr_pack()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_datagram.c361 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr, in smb_netbios_datagram_send()
378 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; in smb_netbios_datagram_send()
384 sin.sin_addr.s_addr = ipaddr.a_ipv4; in smb_netbios_datagram_send()
441 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr, in smb_netbios_datagram_send_to_net()
458 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; in smb_netbios_datagram_send_to_net()
463 sin.sin_addr.s_addr = ipaddr.a_ipv4; in smb_netbios_datagram_send_to_net()
503 (void) memcpy(&datagram->src.addr_list.sin.sin_addr.s_addr, in smb_datagram_decode()
516 inet_ntoa(datagram->src.addr_list.sin.sin_addr)); in smb_datagram_decode()
526 inet_ntoa(datagram->src.addr_list.sin.sin_addr)); in smb_datagram_decode()
719 if (prev->src.addr_list.sin.sin_addr.s_addr == in smb_netbios_datagram_getq()
[all …]
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dutils.c21 malloc(sizeof (ss2sin(ss)->sin_addr)); in cvtkaddr()
25 (char *)&(ss2sin(ss)->sin_addr), in cvtkaddr()
26 sizeof (ss2sin(ss)->sin_addr)); in cvtkaddr()
28 krbap->length = sizeof (ss2sin(ss)->sin_addr); in cvtkaddr()
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c60 ntohl(addr->ipv4.sin_addr.s_addr) == 0x00000000) in httpAddrAny()
83 return (addr1->ipv4.sin_addr.s_addr == addr2->ipv4.sin_addr.s_addr); in httpAddrEqual()
128 memcpy((char *)&(addr->ipv4.sin_addr), host->h_addr_list[n], in httpAddrLoad()
155 ntohl(addr->ipv4.sin_addr.s_addr) == 0x7f000001) in httpAddrLocalhost()
199 host = gethostbyaddr(ADDR_CAST &(addr->ipv4.sin_addr), in httpAddrLookup()
247 temp = ntohl(addr->ipv4.sin_addr.s_addr); in httpAddrString()
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dinetutil.c90 addr1 = ((const struct sockaddr_in *)ssp1)->sin_addr; in sockaddrcmp()
91 addr2 = ((const struct sockaddr_in *)ssp2)->sin_addr; in sockaddrcmp()
121 addr += offsetof(struct sockaddr_in, sin_addr); in plen2mask()
160 addr += offsetof(struct sockaddr_in, sin_addr); in mask2plen()
195 return (((struct sockaddr_in *)&data)->sin_addr.s_addr == in sockaddrunspec()
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dserver.c87 (void *)&(sinp->sin_addr), in isns_connection()
91 (void *)&(sinp->sin_addr), in isns_connection()
173 (void *)&(sinp->sin_addr), in isns_connection()
177 (void *)&(sinp->sin_addr), in isns_connection()
248 sin.sin_addr.s_addr = htonl(INADDR_ANY); in isns_port_watcher()
302 (void) inet_ntop(AF_INET, (void *)&(sinp->sin_addr), in isns_port_watcher()
305 (void) inet_ntop(AF_INET6, (void *)&(sinp->sin_addr), in isns_port_watcher()
/illumos-gate/usr/src/lib/libuuid/common/
H A Detheraddr.c64 sin->sin_addr.s_addr = inet_addr(name.nodename); in arp_get()
65 if (sin->sin_addr.s_addr == (in_addr_t)-1) { in arp_get()
70 (void) memcpy(&sin->sin_addr, hp->h_addr, in arp_get()
71 sizeof (sin->sin_addr)); in arp_get()
/illumos-gate/usr/src/cmd/backup/lib/
H A Dmyrcmd.c121 if ((unsigned)(hp->h_length) > sizeof (sin.sin_addr)) { in myrcmd()
124 hp->h_length, sizeof (sin.sin_addr)); in myrcmd()
175 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length); in myrcmd()
194 inet_ntoa(sin.sin_addr)); in myrcmd()
198 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, in myrcmd()
201 inet_ntoa(sin.sin_addr)); in myrcmd()
/illumos-gate/usr/src/stand/lib/inet/
H A Dudp.c128 if (udp_chksum(udphp, &igp->igm_saddr.sin_addr, in udp_input()
132 inet_ntoa(igp->igm_saddr.sin_addr)); in udp_input()
144 inet_ntoa(igp->igm_saddr.sin_addr)); in udp_input()
193 udphp->uh_sum = udp_chksum(udphp, &sockets[index].bind.sin_addr, in udp_output()
194 &ogp->igm_saddr.sin_addr, sockets[index].proto); in udp_output()
/illumos-gate/usr/src/lib/libwrap/
H A Dsocket.c144 STRN_CPY(host->addr, inet_ntoa(sin->sg_sin.sin_addr), sizeof(host->addr));
235 inet_ntoa(sin->sg_sin.sin_addr),
273 IN6_V4MAPPED_TO_INADDR(&sg->sg_sin6.sin6_addr, &v4_addr.sin_addr);
275 IN6_MAPPED_TO_V4(&sg->sg_sin6.sin6_addr, &v4_addr.sin_addr);
277 memcpy(&v4_addr.sin_addr, ((char*) &sg->sg_sin6.sin6_addr) + 12, 4);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c120 inet_ntoa(sin.sin_addr)); in output()
182 inet_ntoa(sin.sin_addr), in output()
355 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write()
435 naddr_ntoa(ws.to.sin_addr.s_addr), in supply_out()
542 if (on_net(ws.to.sin_addr.s_addr, in walk_supply()
559 if (on_net(ws.to.sin_addr.s_addr, in walk_supply()
754 ws.to_std_mask = std_mask(ws.to.sin_addr.s_addr); in supply()
755 ws.to_std_net = ntohl(ws.to.sin_addr.s_addr) & ws.to_std_mask; in supply()
760 if (on_net(ws.to.sin_addr.s_addr, ws.to_net, ws.to_mask) || in supply()
765 ws.to_mask = ripv1_mask_net(ws.to.sin_addr.s_addr, NULL); in supply()
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c156 gmt.ip_address = si->sin_addr.s_addr; in dapli_ns_create_gid_map()
247 if (gmt->ip_address == si->sin_addr.s_addr) { in dapls_ns_lookup_address()
267 addr_ptr = (void *)&((struct sockaddr_in *)addr)->sin_addr; in dapls_inet_ntop()
364 sin->sin_addr.s_addr = addr->sin_addr.s_addr; in dapls_ns_lookup_v4()
559 sin_addr.s_addr; in dapls_ns_subnet_match_v4()
574 sin_addr.s_addr & netmask; in dapls_ns_subnet_match_v4()
575 netaddr_dest = addr->sin_addr.s_addr & netmask; in dapls_ns_subnet_match_v4()
680 v4dest->sin_addr.s_addr = in dapls_ns_resolve_addr()
682 ((struct sockaddr_in *)addr)->sin_addr.s_addr; in dapls_ns_resolve_addr()
/illumos-gate/usr/src/stand/lib/sock/
H A Dsock_test.c473 if (st_get_addr_and_port(&(local_addr.sin_addr.s_addr), in st_bind()
484 printf("@ Socket bound to %s/%d\n", inet_ntoa(local_addr.sin_addr), in st_bind()
528 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in st_accept()
539 if (st_get_addr_and_port(&(peer_addr.sin_addr.s_addr), in st_connect()
550 printf("@ Socket connected to %s/%d\n", inet_ntoa(peer_addr.sin_addr), in st_connect()
607 if (st_get_addr_and_port(&(peer_addr.sin_addr.s_addr), in st_sendto()
697 inet_ntoa(from.sin_addr), ntohs(from.sin_port), ret); in st_recvfrom()
743 addr.sin_addr.s_addr = INADDR_ANY; in st_echo()
762 printf("@ Accepted connection: %s/%d\n", inet_ntoa(addr.sin_addr), in st_echo()
859 printf("@ Local socket name: %s/%d\n", inet_ntoa(addr.sin_addr), in st_getsockname()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dctl.c70 my_addr.sin_addr = my_machine_addr; in open_sockt()
98 ctl_addr.sin_addr = my_machine_addr; in open_ctl()
127 addr.sin_addr, (int)addr.sin_port, addr.sin_family);
/illumos-gate/usr/src/cmd/ypcmd/
H A Drpc_bootstrap.c191 memcpy((char *)&(local_sa.sin_addr.s_addr),
238 if (inet_pton(AF_INET, ipaddr, &sa->sin_addr) != 1) {
338 sa->sin_addr.s_addr = ntohl(sa->sin_addr.s_addr);
340 (sa->sin_addr.s_addr >> 24) & 0xff,
341 (sa->sin_addr.s_addr >> 16) & 0xff,
342 (sa->sin_addr.s_addr >> 8) & 0xff,
343 (sa->sin_addr.s_addr) & 0xff,
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Drpc.c242 if (to->sin_addr.s_addr == cached_destination.s_addr) { in brpc_call()
252 ipv4_getipaddr(&from.sin_addr); in brpc_call()
253 from.sin_addr.s_addr = htonl(from.sin_addr.s_addr); in brpc_call()
431 if (to->sin_addr.s_addr != in brpc_call()
451 inet_ntoa(from_who->sin_addr)); in brpc_call()
H A Dbootparams.c93 to.sin_addr.s_addr = htonl(INADDR_BROADCAST); in whoami()
155 responder.s_addr = from.sin_addr.s_addr; in whoami()
257 to.sin_addr.s_addr = responder.s_addr; in getfile()
281 to.sin_addr.s_addr = htonl(INADDR_BROADCAST); in getfile()
308 responder.s_addr = from.sin_addr.s_addr; in getfile()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c111 if (memcmp(&(all_ifs[i].addr.sin_addr.s_addr), in slp_broadcast_addrs()
114 all_ifs[i].bc_addr.sin_addr.s_addr != 0) { in slp_broadcast_addrs()
164 netmask.s_addr = all_ifs[i].netmask.sin_addr.s_addr; in slp_on_subnet()
167 all_ifs[i].addr.sin_addr.s_addr & netmask.s_addr; in slp_on_subnet()
205 if (memcmp(&(addr.s_addr), &(all_ifs[i].addr.sin_addr.s_addr), in slp_on_localhost()
335 if (slp_pton(surl->s_pcHost, &(sin->sin_addr)) < 1) in slp_surl2sin()
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchangepw.c139 memcpy((char *)&sin_p->sin_addr, (char *)hp->h_addr, hp->h_length);
205 if (((struct sockaddr_in *)&local_addr)->sin_addr.s_addr != 0)
209 &local_addr)->sin_addr);
212 &local_addr)->sin_addr);
243 &remote_addr)->sin_addr);
245 &(((struct sockaddr_in *)&remote_addr)->sin_addr);
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dkrb5_lookup.c136 (void) memcpy(&sin.sin_addr, &dsa->sin_addr, in _krb5_override_service_locator()
137 sizeof (sin.sin_addr)); in _krb5_override_service_locator()
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c234 if (((struct sockaddr_in *)&local_addr)->sin_addr.s_addr != 0) { in process_chpw_request()
237 &local_addr)->sin_addr); in process_chpw_request()
239 local_kaddr.contents = (krb5_octet *) &(((struct sockaddr_in *)&local_addr)->sin_addr); in process_chpw_request()
277 &remote_addr)->sin_addr); in process_chpw_request()
279 remote_kaddr.contents = (krb5_octet *) &(((struct sockaddr_in *)&remote_addr)->sin_addr); in process_chpw_request()
281 remote_kaddr.length = sizeof (sin->sin_addr); in process_chpw_request()
282 remote_kaddr.contents = (krb5_octet *) &sin->sin_addr; in process_chpw_request()
385 inet_ntoa(((struct sockaddr_in *)&remote_addr)->sin_addr), in process_chpw_request()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dnfs.d61 P->rq_xprt->xp_xpc.xpc_lcladdr.buf)->sin_addr.S_un.S_addr) :
71 P->rq_xprt->xp_xpc.xpc_rtaddr.buf)->sin_addr.S_un.S_addr) :
88 P->req->rq_xprt->xp_xpc.xpc_lcladdr.buf)->sin_addr.S_un.S_addr) :
96 P->req->rq_xprt->xp_xpc.xpc_rtaddr.buf)->sin_addr.S_un.S_addr) :

12345678910>>...15