| /freebsd-10-stable/contrib/tcp_wrappers/ |
| D | socket.c | 175 struct addrinfo hints, *res, *res0 = NULL; local 221 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) { 222 freeaddrinfo(res0); 250 if (getaddrinfo(host->name, NULL, &hints, &res0) != 0) { 261 } else if ((res0->ai_canonname == NULL 262 || STR_NE(host->name, res0->ai_canonname)) 273 (res0->ai_canonname == NULL) ? "" : res0->ai_canonname); 284 for (res = res0; res; res = res->ai_next) { 303 freeaddrinfo(res0); 318 (res0->ai_canonname == NULL) ? "" : res0->ai_canonname); [all …]
|
| /freebsd-10-stable/usr.sbin/ypserv/ |
| D | yp_main.c | 261 struct addrinfo hints, *res, *res0; in create_service() local 284 &hints, &res0); in create_service() 290 for (res = res0; res; res = res->ai_next) { in create_service() 304 freeaddrinfo(res0); in create_service() 315 freeaddrinfo(res0); in create_service() 327 freeaddrinfo(res0); in create_service() 350 freeaddrinfo(res0); in create_service() 362 freeaddrinfo(res0); in create_service() 374 freeaddrinfo(res0); in create_service() 382 freeaddrinfo(res0); in create_service() [all …]
|
| /freebsd-10-stable/sbin/hastd/ |
| D | hastd.c | 371 resource_needs_restart(const struct hast_resource *res0, in resource_needs_restart() argument 375 PJDLOG_ASSERT(strcmp(res0->hr_name, res1->hr_name) == 0); in resource_needs_restart() 377 if (strcmp(res0->hr_provname, res1->hr_provname) != 0) in resource_needs_restart() 379 if (strcmp(res0->hr_localpath, res1->hr_localpath) != 0) in resource_needs_restart() 381 if (res0->hr_role == HAST_ROLE_INIT || in resource_needs_restart() 382 res0->hr_role == HAST_ROLE_SECONDARY) { in resource_needs_restart() 383 if (strcmp(res0->hr_remoteaddr, res1->hr_remoteaddr) != 0) in resource_needs_restart() 385 if (strcmp(res0->hr_sourceaddr, res1->hr_sourceaddr) != 0) in resource_needs_restart() 387 if (res0->hr_replication != res1->hr_replication) in resource_needs_restart() 389 if (res0->hr_checksum != res1->hr_checksum) in resource_needs_restart() [all …]
|
| /freebsd-10-stable/contrib/netcat/ |
| D | netcat.c | 634 struct addrinfo *res, *res0; in remote_connect() local 640 res0 = res; in remote_connect() 642 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect() 643 res0->ai_protocol)) < 0) in remote_connect() 663 ahints.ai_family = res0->ai_family; in remote_connect() 676 set_common_sockopts(s, res0->ai_family); in remote_connect() 678 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect() 686 } while ((res0 = res0->ai_next) != NULL); in remote_connect() 738 struct addrinfo *res, *res0; in local_listen() local 755 res0 = res; in local_listen() [all …]
|
| /freebsd-10-stable/crypto/heimdal/lib/ipc/ |
| D | ts-http.c | 77 struct addrinfo hints, *res, *res0; in setup_sockets() local 85 ret = getaddrinfo(NULL, "8080", &hints, &res0); in setup_sockets() 89 for (res = res0; res ; res = res->ai_next) { in setup_sockets() 109 freeaddrinfo(res0); in setup_sockets()
|
| /freebsd-10-stable/contrib/traceroute/ |
| D | as.c | 62 struct addrinfo hints, *res0, *res; in as_setup() local 75 error = getaddrinfo(server, "whois", &hints, &res0); in as_setup() 78 error = getaddrinfo(server, "43", &hints, &res0); in as_setup() 85 for (res = res0; res; res = res->ai_next) { in as_setup() 94 freeaddrinfo(res0); in as_setup()
|
| /freebsd-10-stable/tools/tools/netrate/netblast/ |
| D | netblast.c | 145 struct addrinfo hints, *res, *res0; in main() local 188 error = getaddrinfo(argv[1],argv[2], &hints, &res0); in main() 195 for (res = res0; res; res = res->ai_next) { in main() 217 freeaddrinfo(res0); in main()
|
| /freebsd-10-stable/crypto/openssh/regress/ |
| D | netcat.c | 606 struct addrinfo *res, *res0; in remote_connect() local 615 res0 = res; in remote_connect() 617 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect() 618 res0->ai_protocol)) < 0) in remote_connect() 635 ahints.ai_family = res0->ai_family; in remote_connect() 650 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect() 658 } while ((res0 = res0->ai_next) != NULL); in remote_connect() 710 struct addrinfo *res, *res0; in local_listen() local 727 res0 = res; in local_listen() 729 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen() [all …]
|
| /freebsd-10-stable/tools/tools/netrate/netreceive/ |
| D | netreceive.c | 198 struct addrinfo hints, *res, *res0; in main() local 230 error = getaddrinfo(NULL, argv[1], &hints, &res0); in main() 238 for (res = res0; res && nsock < MAXSOCK; res = res->ai_next) { in main() 273 freeaddrinfo(res0); in main()
|
| /freebsd-10-stable/usr.sbin/portsnap/phttpget/ |
| D | phttpget.c | 295 struct addrinfo *res0; /* Pointer to server addresses */ in main() local 344 env_HTTP_PROXY ? proxyport : "http", &hints, &res0); in main() 350 if (res0 == NULL) in main() 352 res = res0; in main() 720 res = res0; in main() 727 freeaddrinfo(res0); in main()
|
| /freebsd-10-stable/contrib/bsnmp/snmp_ntp/ |
| D | snmp_ntp.c | 245 struct addrinfo hints, *res, *res0; in open_socket() local 253 error = getaddrinfo(ntp_host, ntp_port, &hints, &res0); in open_socket() 263 for (res = res0; res != NULL; res = res->ai_next) { in open_socket() 282 freeaddrinfo(res0); in open_socket() 728 struct addrinfo hints, *res0; in val_parse_ip() local 742 error = getaddrinfo(val, NULL, &hints, &res0); in val_parse_ip() 747 if (res0 == NULL) { in val_parse_ip() 752 sin_local = (struct sockaddr_in *)(void *)res0->ai_addr; in val_parse_ip() 758 freeaddrinfo(res0); in val_parse_ip()
|
| /freebsd-10-stable/sbin/iscontrol/ |
| D | fsm.c | 77 struct addrinfo *res, *res0, hints; in tcpConnect() local 128 if((val = getaddrinfo(op->targetAddress, pbuf, &hints, &res0)) != 0) { in tcpConnect() 135 for(res = res0; res; res = res->ai_next) { in tcpConnect() 154 freeaddrinfo(res0); in tcpConnect()
|
| /freebsd-10-stable/lib/libc/net/ |
| D | getaddrinfo.c | 2401 struct addrinfo hints, *res0, *res; in _gethtent() local 2447 error = getaddrinfo(addr, "0", &hints, &res0); in _gethtent() 2452 if (res0->ai_family == AF_INET6 && in _gethtent() 2453 IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)res0->ai_addr)->sin6_addr)) { in _gethtent() 2454 freeaddrinfo(res0); in _gethtent() 2458 for (res = res0; res; res = res->ai_next) { in _gethtent() 2466 freeaddrinfo(res0); in _gethtent() 2471 return res0; in _gethtent() 2531 struct addrinfo hints, *res, *res0; in _yphostent() local 2579 error = getaddrinfo(addr, NULL, &hints, &res0); in _yphostent() [all …]
|
| /freebsd-10-stable/contrib/tnftp/src/ |
| D | fetch.c | 480 struct addrinfo hints, *res, *res0 = NULL; in fetch_url() local 706 error = getaddrinfo(host, port, &hints, &res0); in fetch_url() 713 if (res0->ai_canonname) in fetch_url() 714 host = res0->ai_canonname; in fetch_url() 717 for (res = res0; res; res = res->ai_next) { in fetch_url() 728 if (verbose && res0->ai_next) { in fetch_url() 1326 if (res0) in fetch_url() 1327 freeaddrinfo(res0); in fetch_url()
|
| D | ftp.c | 169 struct addrinfo hints, *res, *res0; in hookup() local 181 error = getaddrinfo(host, port, &hints, &res0); in hookup() 190 if (res0->ai_canonname) in hookup() 191 (void)strlcpy(hostnamebuf, res0->ai_canonname, in hookup() 197 for (res = res0; res; res = res->ai_next) { in hookup() 207 if (verbose && res0->ai_next) { in hookup() 229 freeaddrinfo(res0); in hookup() 234 freeaddrinfo(res0); in hookup() 235 res0 = res = NULL; in hookup()
|
| /freebsd-10-stable/usr.bin/tftp/ |
| D | main.c | 271 struct addrinfo hints, *res0, *res; in setpeer0() local 288 error = getaddrinfo(host, lport, &hints, &res0); in setpeer0() 294 for (res = res0; res; res = res->ai_next) { in setpeer0() 330 freeaddrinfo(res0); in setpeer0()
|
| /freebsd-10-stable/sys/dev/firewire/ |
| D | sbp.h | 82 uint16_t res0; member
|
| /freebsd-10-stable/contrib/bsnmp/lib/ |
| D | snmpclient.c | 886 struct addrinfo hints, *res0, *res; in open_client_udp() local 930 error = getaddrinfo(snmp_client.chost, snmp_client.cport, &hints, &res0); in open_client_udp() 936 res = res0; in open_client_udp() 942 freeaddrinfo(res0); in open_client_udp() 949 freeaddrinfo(res0); in open_client_udp() 957 freeaddrinfo(res0); in open_client_udp()
|
| /freebsd-10-stable/contrib/gcc/config/ |
| D | fp-bit.c | 880 UDItype res0 = 0; 885 res0 = pp_ll + pp_hl; 886 if (res0 < pp_ll) 890 low = res0;
|
| /freebsd-10-stable/crypto/heimdal/appl/gssmask/ |
| D | gssmaestro.c | 612 struct addrinfo hints, *res0, *res; in connect_client() local 627 ret = getaddrinfo(name, port, &hints, &res0); in connect_client() 631 for (res = res0, fd = -1; res; res = res->ai_next) { in connect_client()
|
| /freebsd-10-stable/contrib/telnet/telnet/ |
| D | commands.c | 2180 struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL; in tn() local 2348 res0 = res; in tn() 2472 freeaddrinfo(res0); in tn() 2500 if (res0 != NULL) in tn() 2501 freeaddrinfo(res0); in tn()
|
| /freebsd-10-stable/usr.sbin/pmcstat/ |
| D | pmcstat_log.c | 1775 struct addrinfo hints, *res, *res0; in pmcstat_open_log() local 1810 if ((error = getaddrinfo(hostname, p+1, &hints, &res0)) != 0) { in pmcstat_open_log() 1816 for (res = res0; res; res = res->ai_next) { in pmcstat_open_log() 1849 freeaddrinfo(res0); in pmcstat_open_log()
|
| /freebsd-10-stable/sbin/pfctl/ |
| D | pfctl_parser.c | 1589 struct addrinfo hints, *res0, *res; in host_dns() local 1604 error = getaddrinfo(ps, NULL, &hints, &res0); in host_dns() 1610 for (res = res0; res; res = res->ai_next) { in host_dns() 1655 freeaddrinfo(res0); in host_dns()
|
| /freebsd-10-stable/sys/xen/interface/arch-x86/hvm/ |
| D | save.h | 488 uint64_t res0; /* reserved */ member
|
| /freebsd-10-stable/sys/amd64/vmm/intel/ |
| D | vtd.c | 55 volatile uint32_t res0; member
|