/freebsd-current/sbin/ifconfig/ |
H A D | carp.c | 225 struct addrinfo hints, *res; local 227 memset(&hints, 0, sizeof(hints)); 228 hints.ai_family = AF_INET6; 229 hints.ai_flags = AI_NUMERICHOST; 231 if (getaddrinfo(val, NULL, &hints, &res) != 0)
|
/freebsd-current/crypto/heimdal/appl/rsh/ |
H A D | rsh.c | 744 struct addrinfo hints; local 746 memset (&hints, 0, sizeof(hints)); 747 hints.ai_socktype = a->ai_socktype; 748 hints.ai_protocol = a->ai_protocol; 749 hints.ai_family = a->ai_family; 750 hints.ai_flags = AI_PASSIVE; 754 error = getaddrinfo (NULL, "0", &hints, &eai); 838 struct addrinfo hints, *ai; local 981 memset (&hints, [all...] |
/freebsd-current/contrib/ofed/librdmacm/examples/ |
H A D | udpong.c | 262 struct addrinfo hints, *res; local 265 memset(&hints, 0, sizeof hints); 266 hints.ai_socktype = SOCK_DGRAM; 267 ret = getaddrinfo(src_addr, port, &hints, &res); 407 struct addrinfo hints, *res; local 410 memset(&hints, 0, sizeof hints); 411 hints.ai_socktype = SOCK_DGRAM; 412 ret = getaddrinfo(dst_addr, port, &hints, [all...] |
H A D | udaddy.c | 78 static struct rdma_addrinfo hints; variable in typeref:struct:rdma_addrinfo 430 &test.nodes[i], hints.ai_port_space); 509 ret = rdma_create_id(test.channel, &listen_id, &test, hints.ai_port_space); 515 ret = get_rdma_addr(src_addr, dst_addr, port, &hints, &test.rai); 564 ret = get_rdma_addr(src_addr, dst_addr, port, &hints, &test.rai); 607 hints.ai_port_space = RDMA_PS_UDP; 630 hints.ai_port_space = strtol(optarg, NULL, 0); 634 hints.ai_flags = RAI_NUMERICHOST; 636 hints.ai_flags = RAI_NUMERICHOST | RAI_FAMILY; 637 hints [all...] |
/freebsd-current/crypto/openssh/ |
H A D | addr.c | 378 struct addrinfo hints, *ai; local 380 memset(&hints, '\0', sizeof(hints)); 381 hints.ai_flags = AI_NUMERICHOST; 383 if (p == NULL || getaddrinfo(p, NULL, &hints, &ai) != 0) 407 struct addrinfo hints, *ai; local 409 memset(&hints, '\0', sizeof(hints)); 410 hints.ai_flags = AI_NUMERICHOST; 412 if (h == NULL || getaddrinfo(h, s, &hints, [all...] |
/freebsd-current/usr.sbin/mtest/ |
H A D | mtest.c | 287 struct addrinfo hints; local 302 memset(&hints, 0, sizeof(struct addrinfo)); 303 hints.ai_flags = AI_NUMERICHOST; 304 hints.ai_family = PF_UNSPEC; 305 hints.ai_socktype = SOCK_DGRAM; 310 error = getaddrinfo(str1, "0", &hints, &res); 326 hints.ai_family = af; 327 error = getaddrinfo(str3, "0", &hints, &res); 528 struct addrinfo hints; local 551 memset(&hints, [all...] |
/freebsd-current/contrib/tcp_wrappers/ |
H A D | tcpdchk.c | 399 struct addrinfo hints, *res; local 409 memset(&hints, 0, sizeof(hints)); 410 hints.ai_family = AF_INET6; 411 hints.ai_socktype = SOCK_STREAM; 412 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; 413 if ((ret = getaddrinfo(pat + 1, NULL, &hints, &res)) == 0)
|
/freebsd-current/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 103 struct addrinfo hints, *res; local 107 memset(&hints, 0, sizeof(hints)); 108 hints.ai_family = AF_UNSPEC; 109 hints.ai_flags = AI_PASSIVE; 110 hints.ai_socktype = SOCK_STREAM; 111 error = getaddrinfo(host, portstr, &hints, &res);
|
/freebsd-current/usr.sbin/rpcbind/ |
H A D | util.c | 326 struct addrinfo hints, *res; local 328 memset(&hints, 0, sizeof hints); 329 hints.ai_family = AF_INET; 330 if ((ecode = getaddrinfo(NULL, "sunrpc", &hints, &res))) { 346 hints.ai_family = AF_INET6; 347 if ((ecode = getaddrinfo(NULL, "sunrpc", &hints, &res))) {
|
/freebsd-current/crypto/heimdal/appl/ftp/ftp/ |
H A D | ruserpass.c | 75 struct addrinfo hints; local 87 memset (&hints, 0, sizeof(hints)); 88 hints.ai_flags = AI_CANONNAME; 90 error = getaddrinfo (hostname_str, NULL, &hints, &ai);
|
/freebsd-current/tools/regression/netinet6/inet6_rth/ |
H A D | inet6_rth-segments.c | 111 struct addrinfo hints; local 117 memset((void *)&hints, 0, sizeof(struct addrinfo)); 118 hints.ai_family = AF_INET6; 119 hints.ai_flags = AI_NUMERICHOST; 120 if (0 != getaddrinfo("::1", NULL, (const struct addrinfo *)&hints, &res))
|
/freebsd-current/usr.sbin/nfscbd/ |
H A D | nfscbd.c | 105 struct addrinfo *aip, hints; local 128 memset((void *)&hints, 0, sizeof (hints)); 129 hints.ai_flags = AI_CANONNAME; 130 error = getaddrinfo(myname, NULL, &hints, &aip);
|
/freebsd-current/contrib/ntp/libntp/ |
H A D | ntp_intres.c | 123 struct addrinfo hints; member in struct:blocking_gai_req_tag 232 const struct addrinfo * hints, 248 if (NULL != hints) { 249 REQUIRE(0 == hints->ai_addrlen); 250 REQUIRE(NULL == hints->ai_addr); 251 REQUIRE(NULL == hints->ai_canonname); 252 REQUIRE(NULL == hints->ai_next); 270 if (hints != NULL) 271 gai_req->hints = *hints; 229 getaddrinfo_sometime_ex( const char * node, const char * service, const struct addrinfo * hints, int retry, gai_sometime_callback callback, void * context, u_int qflags ) argument 453 getaddrinfo_sometime( const char * node, const char * service, const struct addrinfo * hints, int retry, gai_sometime_callback callback, void * context ) argument 598 gai_test_callback(int rescode, int gai_errno, void *context, const char *name, const char *service, const struct addrinfo *hints, const struct addrinfo *ai_res) argument [all...] |
/freebsd-current/crypto/openssl/crypto/bio/ |
H A D | bio_addr.c | 690 struct addrinfo hints; local 692 memset(&hints, 0, sizeof(hints)); 694 hints.ai_family = family; 695 hints.ai_socktype = socktype; 696 hints.ai_protocol = protocol; 701 hints.ai_flags |= AI_ADDRCONFIG; 705 hints.ai_flags |= AI_PASSIVE; 713 switch ((gai_ret = getaddrinfo(host, service, &hints, res))) { 731 if (hints [all...] |
/freebsd-current/lib/libcasper/services/cap_net/ |
H A D | cap_net.h | 62 const char *servname, const struct addrinfo *hints, struct addrinfo **res); 100 #define cap_getaddrinfo(chan, hostname, servname, hints, res) \ 101 getaddrinfo(hostname, servname, hints, res)
|
/freebsd-current/lib/libcasper/services/cap_dns/tests/ |
H A D | dns_test.c | 203 struct addrinfo *ais, *aic, hints, *hintsp; local 241 hints.ai_flags = 0; 242 hints.ai_family = AF_UNSPEC; 243 hints.ai_socktype = 0; 244 hints.ai_protocol = 0; 245 hints.ai_addrlen = 0; 246 hints.ai_addr = NULL; 247 hints.ai_canonname = NULL; 248 hints.ai_next = NULL; 250 hintsp = &hints; [all...] |
/freebsd-current/lib/libipsec/ |
H A D | policy_parse.y | 225 struct addrinfo hints, *res; 230 memset(&hints, 0, sizeof(hints)); 231 hints.ai_family = PF_UNSPEC; 232 hints.ai_flags = AI_NUMERICHOST; 233 error = getaddrinfo(buf->buf, serv, &hints, &res);
|
/freebsd-current/crypto/openssh/regress/ |
H A D | netcat.c | 153 struct addrinfo hints; local 340 memset(&hints, 0, sizeof(struct addrinfo)); 341 hints.ai_family = family; 342 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; 343 hints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; 345 hints.ai_flags |= AI_NUMERICHOST; 390 s = local_listen(host, uport, hints); 474 s = socks_connect(host, portlist[i], hints, 478 s = remote_connect(host, portlist[i], hints); 613 remote_connect(const char *host, const char *port, struct addrinfo hints) argument 717 local_listen(char *host, char *port, struct addrinfo hints) argument 1411 struct addrinfo hints, *res; local [all...] |
/freebsd-current/contrib/lib9p/transport/ |
H A D | socket.c | 72 struct addrinfo *res, *res0, hints; local 77 memset(&hints, 0, sizeof(hints)); 78 hints.ai_family = PF_UNSPEC; 79 hints.ai_socktype = SOCK_STREAM; 80 err = getaddrinfo(host, port, &hints, &res0);
|
/freebsd-current/usr.sbin/ip6addrctl/ |
H A D | ip6addrctl.c | 260 struct addrinfo hints, *res; local 271 memset(&hints, 0, sizeof(hints)); 272 hints.ai_flags = AI_NUMERICHOST; 273 hints.ai_family = AF_INET6; 275 if ((e = getaddrinfo(prefix, NULL, &hints, &res)) != 0) {
|
/freebsd-current/usr.bin/logger/ |
H A D | logger.c | 239 struct addrinfo hints, *res, *res0; local 279 hints = (struct addrinfo){ 284 error = getaddrinfo(hbuf, sbuf, &hints, &res0); 308 hints = (struct addrinfo){ 312 error = getaddrinfo(dst, svcname, &hints, &res0); 315 error = getaddrinfo(dst, "514", &hints, &res0);
|
/freebsd-current/contrib/ofed/librdmacm/ |
H A D | acm.c | 367 const struct rdma_addrinfo *hints) 392 if (hints->ai_flags & (RAI_NUMERICHOST | RAI_NOROUTE)) 399 if (hints->ai_route_len || 404 if (hints->ai_route_len == sizeof(struct ibv_path_record)) 405 path = (struct ibv_path_record *) hints->ai_route; 406 else if (hints->ai_route_len == sizeof(struct ibv_path_data)) 407 path = &((struct ibv_path_data *) hints->ai_route)->path; 441 if (af_ib_support && !(hints->ai_flags & RAI_ROUTEONLY) && (*rai)->ai_route_len) 366 ucma_ib_resolve(struct rdma_addrinfo **rai, const struct rdma_addrinfo *hints) argument
|
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | krbhst.c | 346 * create a getaddrinfo `hints' based on `proto' 350 make_hints(struct addrinfo *hints, int proto) argument 352 memset(hints, 0, sizeof(*hints)); 353 hints->ai_family = AF_UNSPEC; 356 hints->ai_socktype = SOCK_DGRAM; 360 hints->ai_socktype = SOCK_STREAM; 382 struct addrinfo hints; local 387 make_hints(&hints, host->proto); 394 hints 498 struct addrinfo hints; local 561 struct addrinfo hints, *ai; local [all...] |
/freebsd-current/usr.sbin/rrenumd/ |
H A D | parser.y | 186 struct addrinfo hints, *res; 189 memset(&hints, 0, sizeof(hints)); 190 hints.ai_flags = AI_CANONNAME; 191 hints.ai_family = AF_UNSPEC; 192 hints.ai_socktype = SOCK_RAW; 193 hints.ai_protocol = 0; 194 error = getaddrinfo($1.cp, 0, &hints, &res);
|
/freebsd-current/contrib/pf/ftp-proxy/ |
H A D | ftp-proxy.c | 600 struct addrinfo hints, *res; local 704 memset(&hints, 0, sizeof hints); 705 hints.ai_flags = AI_NUMERICHOST; 706 hints.ai_family = ipv6_mode ? AF_INET6 : AF_INET; 707 hints.ai_socktype = SOCK_STREAM; 708 error = getaddrinfo(fixed_proxy, NULL, &hints, &res); 719 memset(&hints, 0, sizeof hints); 720 hints [all...] |