Home
last modified time | relevance | path

Searched refs:ai_addr (Results 1 – 25 of 59) sorted by relevance

123

/titanic_41/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c43 #define ai2sin(x) ((struct sockaddr_in *)((x)->ai_addr))
44 #define ai2sin6(x) ((struct sockaddr_in6 *)((x)->ai_addr))
220 aip->ai_addr = NULL; in _getaddrinfo()
462 nai->ai_addr = malloc(addrlen); in _getaddrinfo()
463 if (nai->ai_addr == NULL) { in _getaddrinfo()
467 bzero(nai->ai_addr, addrlen); in _getaddrinfo()
500 nai->ai_addr = malloc(addrlen); in _getaddrinfo()
501 if (nai->ai_addr == NULL) { in _getaddrinfo()
505 bzero(nai->ai_addr, addrlen); in _getaddrinfo()
663 nai->ai_addr = malloc(addrlen); in get_addr()
[all …]
H A Drcmd.c205 bcopy(res->ai_addr, &caddr, res->ai_addrlen); in rcmd_af()
207 if (af == AF_INET6 && res->ai_addr->sa_family == AF_INET) { in rcmd_af()
211 res->ai_addr)->sin_addr, &ia6); in rcmd_af()
232 if (res->ai_addr->sa_family == AF_INET6) in rcmd_af()
234 res->ai_addr)->sin6_addr; in rcmd_af()
237 res->ai_addr)->sin_addr; in rcmd_af()
240 inet_ntop(res->ai_addr->sa_family, addr, in rcmd_af()
245 if (res->ai_addr->sa_family == AF_INET6) in rcmd_af()
247 res->ai_addr)->sin6_addr; in rcmd_af()
250 res->ai_addr)->sin_addr; in rcmd_af()
[all …]
H A Drexec.c105 s = socket(res->ai_addr->sa_family, res->ai_socktype, res->ai_protocol); in rexec_af()
111 if (connect(s, res->ai_addr, res->ai_addrlen) != 0) { in rexec_af()
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dfake-getaddrinfo.c56 ai->ai_addr = (struct sockaddr *)(ai + 1); in malloc_ai()
59 ai->ai_addr->sa_family = ai->ai_family = AF_INET; in malloc_ai()
61 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai()
62 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhostaddr.c71 switch (aip->ai_addr->sa_family) { in krb5_os_hostaddr()
95 switch (aip->ai_addr->sa_family) { in krb5_os_hostaddr()
99 ptr = &sa2sin(aip->ai_addr)->sin_addr; in krb5_os_hostaddr()
106 ptr = &sa2sin6(aip->ai_addr)->sin6_addr; in krb5_os_hostaddr()
H A Dsendto_kdc.c238 if (0 != getnameinfo (ai->ai_addr, ai->ai_addrlen, in krb5int_debug_fprint()
242 if (ai->ai_addr->sa_family == AF_UNSPEC) in krb5int_debug_fprint()
245 sprintf(tmpbuf + strlen(tmpbuf), " af%d", ai->ai_addr->sa_family); in krb5int_debug_fprint()
334 && !memcmp(thisaddr->ai_addr, list->addrs[i].ai->ai_addr, in in_addrlist()
496 sa = addrs.addrs[addr_used].ai->ai_addr; in krb5_sendto_kdc2()
762 e = connect(fd, ai->ai_addr, ai->ai_addrlen); in start_connection()
844 hack_ai.ai_addr = (struct sockaddr *) &ss; in start_connection()
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dgethost.c39 if ((error == 0) && (ai != NULL) && (ai->ai_addr != NULL)) {
44 ai->ai_addr)->sin_addr;
48 ai->ai_addr)->sin6_addr;
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dgetaddrinfo.c350 pai->ai_addr = NULL;
358 hints->ai_addr || hints->ai_next)
886 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr;
933 ai->ai_addr = (struct sockaddr *)(void *)(ai + 1);
934 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
936 ai->ai_addr->sa_len = afd->a_socklen;
939 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
940 p = (char *)(void *)(ai->ai_addr);
958 ai->ai_addr = (struct sockaddr *)(void *)(ai + 1);
959 memcpy(ai->ai_addr, pai->ai_addr, pai->ai_addrlen);
[all …]
/titanic_41/usr/src/cmd/lms/tools/
H A DATNetworkTool.cpp281 if (!ATAddress::saIsInet(paddr->ai_addr)) { in GetSockPeerIPs()
286 addresses.insert(ATAddress(paddr->ai_addr, 0)); in GetSockPeerIPs()
288 addresses.insert(paddr->ai_addr); in GetSockPeerIPs()
323 return ATNetworkTool::CreateSocket(addr->ai_addr, addr->ai_addrlen, in CreateSocket()
363 return ATNetworkTool::ConnectSocket(addr->ai_addr, addr->ai_addrlen, in ConnectSocket()
395 if (!ATAddress::saIsInet(paddr->ai_addr)) { in ConnectSocket()
500 if (!ATAddress::saIsInet(paddr->ai_addr)) { in CreateServerSockets()
625 if (!ATAddress::saIsInet(paddr->ai_addr)) { in Connect()
680 if (!ATAddress::saIsInet(paddr->ai_addr)) { in ConnectLoopback()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c449 if (ai->ai_family != ai->ai_addr->sa_family) in debug_dump_addrinfos()
451 familyname(ai->ai_addr->sa_family, buf)); in debug_dump_addrinfos()
549 n->ai_addr = (struct sockaddr *) sin4; in fai_add_entry()
564 n->ai_addr = (struct sockaddr *) sin6; in fai_add_entry()
748 ce->addrs4[i4++] = ((struct sockaddr_in *)ai2->ai_addr)->sin_addr; in fai_add_hosts_by_name()
751 ce->addrs6[i6++] = ((struct sockaddr_in6 *)ai2->ai_addr)->sin6_addr; in fai_add_hosts_by_name()
816 if (ai->ai_addr) in fake_freeaddrinfo()
817 free (ai->ai_addr); in fake_freeaddrinfo()
890 template.ai_addr = 0; in fake_getaddrinfo()
1266 ((struct sockaddr_in *)ai->ai_addr)->sin_port = service_port; in getaddrinfo()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/common/
H A Daddr_match.c67 s4 = (struct sockaddr_in *)ai->ai_addr; in find_match()
73 s6 = (struct sockaddr_in6 *)ai->ai_addr; in find_match()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/
H A Drdate.c127 s = socket(res->ai_addr->sa_family, res->ai_socktype, in main()
139 if (connect(s, res->ai_addr, res->ai_addrlen) >= 0) in main()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c679 ai_dst->ai_addr)->sin_addr, in main()
684 ai_dst->ai_addr)->sin6_addr, in main()
738 aip->ai_addr)->sin_addr, in build_targetaddr_list()
745 aip->ai_addr)->sin6_addr, in build_targetaddr_list()
939 aip->ai_addr)->sin_addr, in get_gwaddrs()
954 aip->ai_addr)->sin6_addr, in get_gwaddrs()
1116 aip->ai_addr)->sin_addr, in select_all_src_addrs()
1125 aip->ai_addr)->sin6_addr, in select_all_src_addrs()
1226 ai_addr)->sin_addr.s_addr; in set_nexthop()
1248 ai_addr; in set_nexthop()
[all …]
/titanic_41/usr/src/cmd/ssh/include/
H A Dfake-getaddrinfo.h35 struct sockaddr *ai_addr; /* binary address */ member
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dnewvc.c77 bcopy(ai->ai_addr, &ssn->ssn_srvaddr, ai->ai_addrlen); in newvc()
H A Dfindvc.c77 bcopy(ai->ai_addr, &ssn->ssn_srvaddr, ai->ai_addrlen); in findvc()
H A Dgetaddr.c73 dump_sockaddr(ai->ai_addr); in dump_addrinfo()
/titanic_41/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_ip.c872 struct sockaddr_storage *addr, ai_addr, *aip = NULL; in nwamd_ncu_handle_if_state_event() local
906 (void) memcpy(&ai_addr, addrinfo->ia_ifa.ifa_addr, in nwamd_ncu_handle_if_state_event()
907 sizeof (ai_addr)); in nwamd_ncu_handle_if_state_event()
908 aip = &ai_addr; in nwamd_ncu_handle_if_state_event()
982 (void) memcpy(&ai_addr, in nwamd_ncu_handle_if_state_event()
984 sizeof (ai_addr)); in nwamd_ncu_handle_if_state_event()
985 aip = &ai_addr; in nwamd_ncu_handle_if_state_event()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c576 if (bind(s, (struct sockaddr *)ares->ai_addr, in remote_connect()
594 if (connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
600 res0->ai_addr, res0->ai_addrlen, NI_NUMERICHOST), in remote_connect()
645 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dcommands.c2635 s6 = (struct sockaddr_in6 *)host->ai_addr; in resolve_hosts()
2637 if (host->ai_addr->sa_family == AF_INET || in resolve_hosts()
2696 v6addrp = &((struct sockaddr_in6 *)addr->ai_addr)-> in resolve_hosts()
2698 v4addrp = &((struct sockaddr_in *)addr->ai_addr)-> in resolve_hosts()
3111 target_port = ((struct sockaddr_in *)(host->ai_addr))->sin_port;
3113 target_port = ((struct sockaddr_in6 *)(host->ai_addr))
3188 addr = (struct sockaddr_in6 *)h->ai_addr;
3219 addrp = &((struct sockaddr_in *)(h->ai_addr))->sin_addr;
3220 ((struct sockaddr_in *)(h->ai_addr))->sin_port =
3223 addrp = &((struct sockaddr_in6 *)(h->ai_addr))
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c600 ai_dst->ai_addr)->sin_addr, in main()
609 ai_dst->ai_addr)->sin6_addr, in main()
887 &((struct sockaddr_in *)aip->ai_addr)->sin_addr; in set_src_addr()
891 &((struct sockaddr_in6 *)aip->ai_addr)->sin6_addr; in set_src_addr()
1059 &((struct sockaddr_in *)ai_tmp->ai_addr)->sin_addr; in has_addr()
1125 aip->ai_addr)->sin_addr, in get_gwaddrs()
1142 aip->ai_addr)->sin6_addr, in get_gwaddrs()
1431 aip->ai_addr)->sin_addr; in trace_it()
1439 aip->ai_addr)->sin6_addr; in trace_it()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Daddrmatch.c217 if (ai == NULL || ai->ai_addr == NULL) in addr_pton()
221 addr_sa_to_xaddr(ai->ai_addr, ai->ai_addrlen, n) == -1) { in addr_pton()
/titanic_41/usr/src/lib/libbsm/common/
H A Dgeneric.c177 p = &((struct sockaddr_in *)ai->ai_addr)->sin_addr, in aug_get_machine()
184 p = &((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr, in aug_get_machine()
/titanic_41/usr/src/cmd/fs.d/smbclnt/test/
H A Dtconn.c153 memcpy(&ctx->ct_srvaddr, ai->ai_addr, ai->ai_addrlen); in main()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dfake-addrinfo.h117 struct sockaddr *ai_addr; /* pointer to variable-size address */ member

123