Home
last modified time | relevance | path

Searched refs:res0 (Results 1 – 19 of 19) sorted by relevance

/dragonfly/contrib/tcp_wrappers/
HDsocket.c175 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 …]
/dragonfly/lib/libcompat/4.3/
HDrexec.c303 struct addrinfo hints, *res0; in rexec_af() local
321 gai = getaddrinfo(*ahost, servbuff, &hints, &res0); in rexec_af()
327 if (res0->ai_canonname){ in rexec_af()
329 ahostbuf = strdup (res0->ai_canonname); in rexec_af()
340 ruserpass(res0->ai_canonname, &name, &pass, 0); in rexec_af()
342 s = socket(res0->ai_family, res0->ai_socktype, 0); in rexec_af()
347 if (connect(s, res0->ai_addr, res0->ai_addrlen) < 0) { in rexec_af()
354 perror(res0->ai_canonname); in rexec_af()
365 s2 = socket(res0->ai_family, res0->ai_socktype, 0); in rexec_af()
425 freeaddrinfo(res0); in rexec_af()
[all …]
/dragonfly/usr.sbin/dntpd/
HDsocket.c43 struct addrinfo hints, *res, *res0; in udp_socket() local
54 error = getaddrinfo(target, servname, &hints, &res0); in udp_socket()
63 for (res = res0; res; res = res->ai_next) { in udp_socket()
93 freeaddrinfo(res0); in udp_socket()
/dragonfly/libexec/dma/
HDdns.c68 struct addrinfo hints, *res, *res0 = NULL; in add_host() local
79 switch (getaddrinfo(host, servname, &hints, &res0)) { in add_host()
100 for (res = res0; res != NULL; res = res->ai_next) { in add_host()
121 freeaddrinfo(res0); in add_host()
126 if (res0 != NULL) in add_host()
127 freeaddrinfo(res0); in add_host()
/dragonfly/tools/tools/netrate/netblast/
HDnetblast.c145 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()
/dragonfly/crypto/libressl/tls/
HDtls_client.c62 struct addrinfo hints, *res, *res0; in tls_connect_servername() local
108 if (getaddrinfo(h, p, &hints, &res0) != 0) { in tls_connect_servername()
111 if (getaddrinfo(h, p, &hints, &res0) != 0) { in tls_connect_servername()
115 if ((s = getaddrinfo(h, p, &hints, &res0)) != 0) { in tls_connect_servername()
124 for (res = res0; res; res = res->ai_next) { in tls_connect_servername()
139 freeaddrinfo(res0); in tls_connect_servername()
/dragonfly/usr.bin/tftp/
HDmain.c164 struct addrinfo hints, *res0, *res; in setpeer0() local
182 error = getaddrinfo(host, port, &hints, &res0); in setpeer0()
188 for (res = res0; res; res = res->ai_next) { in setpeer0()
224 freeaddrinfo(res0); in setpeer0()
/dragonfly/lib/libc/net/
HDgetaddrinfo.c2109 struct addrinfo hints, *res0, *res; in _gethtent() local
2152 error = getaddrinfo(addr, "0", &hints, &res0); in _gethtent()
2157 if (res0->ai_family == AF_INET6 && in _gethtent()
2158 IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)res0->ai_addr)->sin6_addr)) { in _gethtent()
2159 freeaddrinfo(res0); in _gethtent()
2163 for (res = res0; res; res = res->ai_next) { in _gethtent()
2171 freeaddrinfo(res0); in _gethtent()
2176 return res0; in _gethtent()
2215 struct addrinfo hints, *res, *res0; in _yphostent() local
2260 error = getaddrinfo(addr, NULL, &hints, &res0); in _yphostent()
[all …]
/dragonfly/sbin/iscontrol/
HDfsm.c74 struct addrinfo *res, *res0, hints; in tcpConnect() local
125 if((val = getaddrinfo(op->targetAddress, pbuf, &hints, &res0)) != 0) { in tcpConnect()
132 for(res = res0; res; res = res->ai_next) { in tcpConnect()
151 freeaddrinfo(res0); in tcpConnect()
/dragonfly/contrib/tnftp/src/
HDftp.c171 struct addrinfo hints, *res, *res0; in hookup() local
183 error = getaddrinfo(host, port, &hints, &res0); in hookup()
192 if (res0->ai_canonname) in hookup()
193 (void)strlcpy(hostnamebuf, res0->ai_canonname, in hookup()
199 for (res = res0; res; res = res->ai_next) { in hookup()
209 if (verbose && res0->ai_next) { in hookup()
242 freeaddrinfo(res0); in hookup()
247 freeaddrinfo(res0); in hookup()
248 res0 = res = NULL; in hookup()
HDfetch.c591 struct addrinfo hints, *res, *res0 = NULL; in ftp_socket() local
606 error = getaddrinfo(host, port, &hints, &res0); in ftp_socket()
614 if (res0->ai_canonname) in ftp_socket()
615 host = res0->ai_canonname; in ftp_socket()
620 for (res = res0; res; res = res->ai_next) { in ftp_socket()
631 if (verbose && res0->ai_next) { in ftp_socket()
671 if (res0) in ftp_socket()
672 freeaddrinfo(res0); in ftp_socket()
/dragonfly/crypto/libressl/apps/nc/
HDnetcat.c962 struct addrinfo *res, *res0; in remote_connect() local
968 if ((error = getaddrinfo(host, port, &hints, &res0))) in remote_connect()
972 for (res = res0; res; res = res->ai_next) { in remote_connect()
1034 freeaddrinfo(res0); in remote_connect()
1075 struct addrinfo *res, *res0; in local_listen() local
1092 if ((error = getaddrinfo(host, port, &hints, &res0))) in local_listen()
1095 for (res = res0; res; res = res->ai_next) { in local_listen()
1133 freeaddrinfo(res0); in local_listen()
/dragonfly/sys/dev/disk/sbp/
HDsbp.h82 uint16_t res0; member
/dragonfly/lib/libftpio/
HDftpio.c725 struct addrinfo hints, *res, *res0; in ftp_login_session() local
754 err = getaddrinfo(host, pbuf, &hints, &res0); in ftp_login_session()
761 for (res = res0; res; res = res->ai_next) { in ftp_login_session()
777 freeaddrinfo(res0); in ftp_login_session()
/dragonfly/contrib/gcc-4.7/libgcc/
HDfp-bit.c872 UDItype res0 = 0;
877 res0 = pp_ll + pp_hl;
878 if (res0 < pp_ll)
882 low = res0;
/dragonfly/usr.bin/telnet/
HDcommands.c2117 struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL; in tn() local
2282 res0 = res; in tn()
2396 freeaddrinfo(res0); in tn()
2424 if (res0 != NULL) in tn()
2425 freeaddrinfo(res0); in tn()
/dragonfly/usr.sbin/pfctl/
HDpfctl_parser.c1563 struct addrinfo hints, *res0, *res; in host_dns() local
1578 error = getaddrinfo(ps, NULL, &hints, &res0); in host_dns()
1584 for (res = res0; res; res = res->ai_next) { in host_dns()
1629 freeaddrinfo(res0); in host_dns()
/dragonfly/contrib/libpcap/
HDgencode.c6656 struct addrinfo *res, *res0; in gen_scode() local
6769 res0 = res = pcap_nametoaddrinfo(name); in gen_scode()
6785 for (res = res0; res; res = res->ai_next) { in gen_scode()
6817 freeaddrinfo(res0); in gen_scode()
/dragonfly/contrib/binutils-2.27/gold/
HDpowerpc.cc4812 Address res0 = this->address(); in do_write() local
4815 write_insn<big_endian>(p + 4, addis_11_11 + ha(-res0)); in do_write()
4820 write_insn<big_endian>(p + 12, addi_11_11 + l(-res0)); in do_write()