/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | hostaddr.c | 43 struct addrinfo hints, *ai, *aip; in krb5_os_hostaddr() local 49 memset (&hints, 0, sizeof (hints)); in krb5_os_hostaddr() 50 hints.ai_flags = AI_NUMERICHOST; in krb5_os_hostaddr() 55 hints.ai_socktype = SOCK_DGRAM; in krb5_os_hostaddr() 57 r = getaddrinfo (name, 0, &hints, &ai); in krb5_os_hostaddr() 59 hints.ai_flags &= ~AI_NUMERICHOST; in krb5_os_hostaddr() 60 r = getaddrinfo (name, 0, &hints, &ai); in krb5_os_hostaddr()
|
H A D | hst_realm.c | 170 struct addrinfo *ai, hints; in krb5int_get_fq_hostname() local 173 memset (&hints, 0, sizeof (hints)); in krb5int_get_fq_hostname() 174 hints.ai_flags = AI_CANONNAME; in krb5int_get_fq_hostname() 175 err = getaddrinfo (name, 0, &hints, &ai); in krb5int_get_fq_hostname()
|
/titanic_50/usr/src/cmd/ipf/lib/common/ |
H A D | gethost.c | 19 struct addrinfo hints, *ai; local 31 bzero(&hints, sizeof (hints)); 33 hints.ai_family = AF_INET; 35 hints.ai_family = AF_INET6; 37 error = getaddrinfo(name, NULL, &hints, &ai);
|
/titanic_50/usr/src/lib/libsmbfs/smb/ |
H A D | getaddr.c | 119 struct addrinfo hints, *res; in smb_ctx_getaddr() local 153 memset(&hints, 0, sizeof (hints)); in smb_ctx_getaddr() 154 hints.ai_flags = AI_CANONNAME; in smb_ctx_getaddr() 155 hints.ai_family = PF_UNSPEC; in smb_ctx_getaddr() 156 hints.ai_socktype = SOCK_STREAM; in smb_ctx_getaddr() 157 gaierr = getaddrinfo(srvaddr_str, NULL, &hints, &res); in smb_ctx_getaddr()
|
/titanic_50/usr/src/cmd/cmd-inet/common/ |
H A D | addr_match.c | 101 struct addrinfo *res, hints; in check_address() local 104 (void) memset(&hints, 0, sizeof (hints)); in check_address() 105 hints.ai_flags = AI_CANONNAME|AI_V4MAPPED|AI_ADDRCONFIG|AI_ALL; in check_address() 106 hints.ai_family = fromp->ss_family; in check_address() 107 if (getaddrinfo(hostname, NULL, &hints, &res) == 0) { in check_address()
|
/titanic_50/usr/src/lib/libsocket/inet/ |
H A D | rexec.c | 78 struct addrinfo hints; in rexec_af() local 88 memset(&hints, 0, sizeof (hints)); in rexec_af() 90 hints.ai_flags = AI_CANONNAME|AI_ADDRCONFIG|AI_V4MAPPED; in rexec_af() 91 hints.ai_socktype = SOCK_STREAM; in rexec_af() 92 hints.ai_family = af; in rexec_af() 93 rc = getaddrinfo(*ahost, aport, &hints, &res); in rexec_af()
|
H A D | getaddrinfo.c | 194 const struct addrinfo *hints, struct addrinfo **res, int version) in _getaddrinfo() argument 229 if (hints != NULL) { in _getaddrinfo() 231 if ((hints->ai_flags != 0) && (hints->ai_flags & ~AI_MASK)) { in _getaddrinfo() 236 (hints->ai_flags & AI_CANONNAME)) { in _getaddrinfo() 240 if (hints->ai_family != PF_UNSPEC && in _getaddrinfo() 241 hints->ai_family != PF_INET && in _getaddrinfo() 242 hints->ai_family != PF_INET6) { in _getaddrinfo() 247 (void) memcpy(aip, hints, sizeof (*aip)); in _getaddrinfo() 548 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 550 return (_getaddrinfo(hostname, servname, hints, res, GAIV_DEFAULT)); in getaddrinfo() [all …]
|
H A D | rcmd.c | 107 struct addrinfo hints; in rcmd_af() local 136 memset(&hints, 0, sizeof (hints)); in rcmd_af() 137 hints.ai_socktype = SOCK_STREAM; in rcmd_af() 138 hints.ai_flags = AI_CANONNAME; in rcmd_af() 140 hints.ai_flags |= AI_V4MAPPED; in rcmd_af() 141 hints.ai_family = AF_UNSPEC; in rcmd_af() 143 hints.ai_family = af; in rcmd_af() 146 rc = getaddrinfo(*ahost, aport, &hints, &res); in rcmd_af()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rdate.c | 89 struct addrinfo hints; in main() local 98 (void) memset(&hints, 0, sizeof (hints)); in main() 99 hints.ai_protocol = IPPROTO_TCP; in main() 116 rc = getaddrinfo(argv[1], "time", &hints, &res); in main()
|
H A D | whois.c | 221 struct addrinfo hints, *res; in gethostinfo() local 224 (void) memset(&hints, 0, sizeof (hints)); in gethostinfo() 225 hints.ai_flags = 0; in gethostinfo() 226 hints.ai_family = AF_UNSPEC; in gethostinfo() 227 hints.ai_socktype = SOCK_STREAM; in gethostinfo() 228 error = getaddrinfo(host, port, &hints, &res); in gethostinfo()
|
/titanic_50/usr/src/cmd/ssh/ssh-http-proxy-connect/ |
H A D | ssh-http-proxy-connect.c | 105 struct addrinfo hints, *ai; in main() local 188 bzero(&hints, sizeof (struct addrinfo)); in main() 189 hints.ai_family = PF_UNSPEC; in main() 190 hints.ai_socktype = SOCK_STREAM; in main() 192 if ((err_code = getaddrinfo(httpproxy, httpproxyport, &hints, &ai)) in main()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 134 struct addrinfo hints; in main() local 284 (void) memset(&hints, 0, sizeof (struct addrinfo)); in main() 285 hints.ai_family = family; in main() 286 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; in main() 287 hints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; in main() 289 hints.ai_flags |= AI_NUMERICHOST; in main() 338 s = local_listen(host, uport, hints); in main() 416 s = remote_connect(host, port, hints); in main() 548 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() argument 553 if ((error = getaddrinfo(host, port, &hints, &res))) in remote_connect() [all …]
|
H A D | socks.c | 77 struct addrinfo hints, *res; in decode_addrport() local 79 bzero(&hints, sizeof (hints)); in decode_addrport() 80 hints.ai_family = v4only ? PF_INET : PF_UNSPEC; in decode_addrport() 81 hints.ai_flags = numeric ? AI_NUMERICHOST : 0; in decode_addrport() 82 hints.ai_socktype = SOCK_STREAM; in decode_addrport() 83 r = getaddrinfo(h, p, &hints, &res); in decode_addrport()
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | canohost.c | 43 struct addrinfo hints, *ai, *aitop; in get_remote_hostname() local 101 memset(&hints, 0, sizeof(hints)); in get_remote_hostname() 102 hints.ai_family = from.ss_family; in get_remote_hostname() 103 hints.ai_socktype = SOCK_STREAM; in get_remote_hostname() 104 if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { in get_remote_hostname()
|
H A D | addrmatch.c | 209 struct addrinfo hints, *ai; in addr_pton() local 211 memset(&hints, '\0', sizeof(hints)); in addr_pton() 212 hints.ai_flags = AI_NUMERICHOST; in addr_pton() 214 if (p == NULL || getaddrinfo(p, NULL, &hints, &ai) != 0) in addr_pton()
|
H A D | channels.c | 2163 struct addrinfo hints, *ai, *aitop; in channel_setup_fwd_listener() local 2217 memset(&hints, 0, sizeof(hints)); in channel_setup_fwd_listener() 2218 hints.ai_family = IPv4or6; in channel_setup_fwd_listener() 2219 hints.ai_flags = wildcard ? AI_PASSIVE : 0; in channel_setup_fwd_listener() 2220 hints.ai_socktype = SOCK_STREAM; in channel_setup_fwd_listener() 2222 if ((r = getaddrinfo(addr, strport, &hints, &aitop)) != 0) { in channel_setup_fwd_listener() 2520 struct addrinfo hints, *ai, *aitop; in connect_to() local 2525 memset(&hints, 0, sizeof(hints)); in connect_to() 2526 hints.ai_family = IPv4or6; in connect_to() 2527 hints.ai_socktype = SOCK_STREAM; in connect_to() [all …]
|
/titanic_50/usr/src/cmd/ssh/ssh-socks5-proxy-connect/ |
H A D | ssh-socks5-proxy-connect.c | 249 struct addrinfo hints, *ai; in main() local 311 bzero(&hints, sizeof (struct addrinfo)); in main() 312 hints.ai_family = PF_UNSPEC; in main() 313 hints.ai_socktype = SOCK_STREAM; in main() 315 if ((err_code = getaddrinfo(socks_server, socks_port, &hints, &ai)) in main()
|
/titanic_50/usr/src/cmd/ssh/ssh/ |
H A D | sshconnect.c | 187 struct addrinfo hints, *res; in ssh_create_socket() local 212 memset(&hints, 0, sizeof(hints)); in ssh_create_socket() 213 hints.ai_family = family; in ssh_create_socket() 214 hints.ai_socktype = SOCK_STREAM; in ssh_create_socket() 215 hints.ai_flags = AI_PASSIVE; in ssh_create_socket() 216 gaierr = getaddrinfo(options.bind_address, "0", &hints, &res); in ssh_create_socket() 329 struct addrinfo hints, *ai, *aitop; in ssh_connect() local 354 memset(&hints, 0, sizeof(hints)); in ssh_connect() 355 hints.ai_family = family; in ssh_connect() 356 hints.ai_socktype = SOCK_STREAM; in ssh_connect() [all …]
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | fake-getaddrinfo.c | 68 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 80 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo()
|
/titanic_50/usr/src/cmd/vntsd/ |
H A D | vntsd.c | 279 struct addrinfo hints; in get_listen_ip_addr() local 293 bzero(&hints, sizeof (hints)); in get_listen_ip_addr() 294 hints.ai_family = PF_INET; in get_listen_ip_addr() 295 hints.ai_socktype = SOCK_STREAM; in get_listen_ip_addr() 297 err = getaddrinfo(host_name, NULL, &hints, &res); in get_listen_ip_addr()
|
/titanic_50/usr/src/cmd/avs/dsstat/ |
H A D | sdbc_stats.c | 306 uint32_t hints; in sdbc_report() local 314 hints = *nhint; in sdbc_report() 315 hints &= (NSC_FORCED_WRTHRU | NSC_NO_FORCED_WRTHRU | in sdbc_report() 317 hints |= *dhint; in sdbc_report() 319 if (hints & NSC_NOCACHE) in sdbc_report() 324 if ((hints & NSC_FORCED_WRTHRU) || (hints & NSC_WRTHRU)) in sdbc_report()
|
/titanic_50/usr/src/lib/libdladm/common/ |
H A D | libdliptun.c | 89 struct addrinfo *ai, hints; in i_iptun_kparams() local 116 (void) memset(&hints, 0, sizeof (hints)); in i_iptun_kparams() 120 hints.ai_family = AF_INET; in i_iptun_kparams() 123 hints.ai_family = AF_INET6; in i_iptun_kparams() 129 if (getaddrinfo(params->iptun_param_laddr, NULL, &hints, &ai) != in i_iptun_kparams() 143 if (getaddrinfo(params->iptun_param_raddr, NULL, &hints, &ai) != in i_iptun_kparams()
|
/titanic_50/usr/src/lib/libadutils/common/ |
H A D | srv_query.c | 561 struct addrinfo hints; in do_getaddrinfo() local 567 (void) memset(&hints, 0, sizeof (hints)); in do_getaddrinfo() 568 hints.ai_protocol = IPPROTO_TCP; in do_getaddrinfo() 569 hints.ai_socktype = SOCK_STREAM; in do_getaddrinfo() 582 err = getaddrinfo(cds->cds_ds.host, NULL, &hints, &ai); in do_getaddrinfo()
|
/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | getaddrinfo.c | 320 getaddrinfo(hostname, servname, hints, res) in getaddrinfo() argument 322 const struct addrinfo *hints; 355 if (hints) { 357 if (hints->ai_addrlen || hints->ai_canonname || 358 hints->ai_addr || hints->ai_next) 360 if (hints->ai_flags & ~AI_MASK) 362 switch (hints->ai_family) { 370 memcpy(pai, hints, sizeof(*pai));
|
/titanic_50/usr/src/lib/libsasl/plugin/ |
H A D | plugin_common.c | 133 struct addrinfo hints, *ai = NULL; local 205 memset(&hints, 0, sizeof(hints)); 206 hints.ai_family = PF_UNSPEC; 207 hints.ai_socktype = SOCK_STREAM; 208 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; 211 if (getaddrinfo(hbuf, p, &hints, &ai) != 0) { 213 if (getaddrinfo(hbuf, &addr[i], &hints, &ai) != 0) {
|