Home
last modified time | relevance | path

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

12345678910>>...15

/titanic_41/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 Dhostconfig.c298 sin->sin_addr.s_addr = router_addr.s_addr;
335 inet_ntoa(addr->sin_addr));
481 *ipp = ntohl(sin->sin_addr.s_addr);
485 dev, inet_ntoa(sin->sin_addr));
493 *maskp = ntohl(sin->sin_addr.s_addr);
498 inet_ntoa(sin->sin_addr));
H A Din.rwhod.c283 from.sin_addr.s_addr); in main()
459 &(((struct sockaddr_in *)np->n_addr)->sin_addr), in onalrm()
529 multicast_addr.sin_addr.s_addr = htonl(INADDR_WHOD_GROUP); in configure()
596 np->n_subnet = sin->sin_addr.s_addr & in configure()
598 sin_addr.s_addr; in configure()
628 ((struct sockaddr_in *)np->n_addr)->sin_addr.s_addr; in configure()
639 multicast_addr.sin_addr.s_addr = in configure()
689 if (sin2->sin_addr.s_addr == sin->sin_addr.s_addr) { in configure()
719 (void) printf("sendto %x.%d\n", ntohl(sin->sin_addr.s_addr), in sendto()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c399 to->sin_addr.s_addr = inet_addr(sendaddress); in main()
400 if (to->sin_addr.s_addr == (unsigned long)-1) { in main()
407 g_joinaddr.sin_addr.s_addr = inet_addr(recvaddress); in main()
408 if (g_joinaddr.sin_addr.s_addr == (unsigned long)-1) { in main()
558 pr_name(sin->sin_addr)); in solicitor()
576 li = find_directly_connected_logint(sin->sin_addr, NULL); in solicitor()
617 pr_name(sin->sin_addr)); in advertise()
667 li_tmp = find_directly_connected_logint(sin->sin_addr, in advertise()
683 pr_name(sin->sin_addr)); in advertise()
776 pr_name(from->sin_addr)); in pr_pack()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c294 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
323 cc, pr_name((char *)&from->sin_addr, in check_reply()
448 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
455 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
459 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
509 cc, pr_name((char *)&from->sin_addr, in check_reply()
521 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
525 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
626 (void *)&from->sin_addr, in check_reply()
669 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
[all …]
/titanic_41/usr/src/cmd/krb5/slave/
H A Dutils.c23 malloc(sizeof (ss2sin(ss)->sin_addr)); in cvtkaddr()
27 (char *)&(ss2sin(ss)->sin_addr), in cvtkaddr()
28 sizeof (ss2sin(ss)->sin_addr)); in cvtkaddr()
30 krbap->length = sizeof (ss2sin(ss)->sin_addr); in cvtkaddr()
/titanic_41/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 …]
/titanic_41/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()
/titanic_41/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c62 ntohl(addr->ipv4.sin_addr.s_addr) == 0x00000000) in httpAddrAny()
85 return (addr1->ipv4.sin_addr.s_addr == addr2->ipv4.sin_addr.s_addr); in httpAddrEqual()
130 memcpy((char *)&(addr->ipv4.sin_addr), host->h_addr_list[n], in httpAddrLoad()
157 ntohl(addr->ipv4.sin_addr.s_addr) == 0x7f000001) in httpAddrLocalhost()
201 host = gethostbyaddr(ADDR_CAST &(addr->ipv4.sin_addr), in httpAddrLookup()
249 temp = ntohl(addr->ipv4.sin_addr.s_addr); in httpAddrString()
/titanic_41/usr/src/lib/libuuid/common/
H A Detheraddr.c66 sin->sin_addr.s_addr = inet_addr(name.nodename); in arp_get()
67 if (sin->sin_addr.s_addr == (in_addr_t)-1) { in arp_get()
72 (void) memcpy(&sin->sin_addr, hp->h_addr, in arp_get()
73 sizeof (sin->sin_addr)); in arp_get()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/backup/lib/
H A Dmyrcmd.c123 if ((unsigned)(hp->h_length) > sizeof (sin.sin_addr)) { in myrcmd()
126 hp->h_length, sizeof (sin.sin_addr)); in myrcmd()
177 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length); in myrcmd()
196 inet_ntoa(sin.sin_addr)); in myrcmd()
200 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, in myrcmd()
203 inet_ntoa(sin.sin_addr)); in myrcmd()
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dfake-getnameinfo.c37 if (strlen(inet_ntoa(sin->sin_addr)) >= hostlen) in getnameinfo()
40 strcpy(host, inet_ntoa(sin->sin_addr)); in getnameinfo()
43 hp = gethostbyaddr((char *)&sin->sin_addr, in getnameinfo()
/titanic_41/usr/src/lib/libwrap/
H A Dsocket.c146 STRN_CPY(host->addr, inet_ntoa(sin->sg_sin.sin_addr), sizeof(host->addr));
237 inet_ntoa(sin->sg_sin.sin_addr),
275 IN6_V4MAPPED_TO_INADDR(&sg->sg_sin6.sin6_addr, &v4_addr.sin_addr);
277 IN6_MAPPED_TO_V4(&sg->sg_sin6.sin6_addr, &v4_addr.sin_addr);
279 memcpy(&v4_addr.sin_addr, ((char*) &sg->sg_sin6.sin6_addr) + 12, 4);
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dctl.c72 my_addr.sin_addr = my_machine_addr; in open_sockt()
100 ctl_addr.sin_addr = my_machine_addr; in open_ctl()
129 addr.sin_addr, (int)addr.sin_port, addr.sin_family);
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c122 inet_ntoa(sin.sin_addr)); in output()
184 inet_ntoa(sin.sin_addr), in output()
357 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write()
437 naddr_ntoa(ws.to.sin_addr.s_addr), in supply_out()
544 if (on_net(ws.to.sin_addr.s_addr, in walk_supply()
561 if (on_net(ws.to.sin_addr.s_addr, in walk_supply()
756 ws.to_std_mask = std_mask(ws.to.sin_addr.s_addr); in supply()
757 ws.to_std_net = ntohl(ws.to.sin_addr.s_addr) & ws.to_std_mask; in supply()
762 if (on_net(ws.to.sin_addr.s_addr, ws.to_net, ws.to_mask) || in supply()
767 ws.to_mask = ripv1_mask_net(ws.to.sin_addr.s_addr, NULL); in supply()
[all …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/ypcmd/
H A Drpc_bootstrap.c193 memcpy((char *)&(local_sa.sin_addr.s_addr),
240 if (inet_pton(AF_INET, ipaddr, &sa->sin_addr) != 1) {
340 sa->sin_addr.s_addr = ntohl(sa->sin_addr.s_addr);
342 (sa->sin_addr.s_addr >> 24) & 0xff,
343 (sa->sin_addr.s_addr >> 16) & 0xff,
344 (sa->sin_addr.s_addr >> 8) & 0xff,
345 (sa->sin_addr.s_addr) & 0xff,
/titanic_41/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c113 if (memcmp(&(all_ifs[i].addr.sin_addr.s_addr), in slp_broadcast_addrs()
116 all_ifs[i].bc_addr.sin_addr.s_addr != 0) { in slp_broadcast_addrs()
166 netmask.s_addr = all_ifs[i].netmask.sin_addr.s_addr; in slp_on_subnet()
169 all_ifs[i].addr.sin_addr.s_addr & netmask.s_addr; in slp_on_subnet()
207 if (memcmp(&(addr.s_addr), &(all_ifs[i].addr.sin_addr.s_addr), in slp_on_localhost()
337 if (slp_pton(surl->s_pcHost, &(sin->sin_addr)) < 1) in slp_surl2sin()
/titanic_41/usr/src/stand/lib/fs/nfs/
H A Drpc.c244 if (to->sin_addr.s_addr == cached_destination.s_addr) { in brpc_call()
254 ipv4_getipaddr(&from.sin_addr); in brpc_call()
255 from.sin_addr.s_addr = htonl(from.sin_addr.s_addr); in brpc_call()
433 if (to->sin_addr.s_addr != in brpc_call()
453 inet_ntoa(from_who->sin_addr)); in brpc_call()
H A Dbootparams.c95 to.sin_addr.s_addr = htonl(INADDR_BROADCAST); in whoami()
157 responder.s_addr = from.sin_addr.s_addr; in whoami()
259 to.sin_addr.s_addr = responder.s_addr; in getfile()
283 to.sin_addr.s_addr = htonl(INADDR_BROADCAST); in getfile()
310 responder.s_addr = from.sin_addr.s_addr; in getfile()
/titanic_41/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);
/titanic_41/usr/src/lib/libdtrace/common/
H A Dnfs.d56 P->rq_xprt->xp_xpc.xpc_lcladdr.buf)->sin_addr.S_un.S_addr) :
66 P->rq_xprt->xp_xpc.xpc_rtaddr.buf)->sin_addr.S_un.S_addr) :
83 P->req->rq_xprt->xp_xpc.xpc_lcladdr.buf)->sin_addr.S_un.S_addr) :
91 P->req->rq_xprt->xp_xpc.xpc_rtaddr.buf)->sin_addr.S_un.S_addr) :

12345678910>>...15