Home
last modified time | relevance | path

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

12

/mirbsd/src/usr.sbin/httpd/src/modules/proxy/
Dproxy_connect.c114 struct addrinfo hints, *res, *res0; in ap_proxy_connect_handler() local
153 error = getaddrinfo(hoststr, portstr, &hints, &res0); in ap_proxy_connect_handler()
169 for (res = res0; res; res = res->ai_next) { in ap_proxy_connect_handler()
179 if (res0 != NULL) in ap_proxy_connect_handler()
180 freeaddrinfo(res0); in ap_proxy_connect_handler()
194 if (res0 != NULL) in ap_proxy_connect_handler()
195 freeaddrinfo(res0); in ap_proxy_connect_handler()
200 if (res0 == NULL) in ap_proxy_connect_handler()
201 freeaddrinfo(res0); in ap_proxy_connect_handler()
208 if (res0 != NULL) in ap_proxy_connect_handler()
[all …]
Dproxy_http.c174 struct addrinfo hints, *res, *res0; in ap_proxy_http_handler() local
245 error = getaddrinfo(desthost, destportstr, &hints, &res0); in ap_proxy_http_handler()
261 for (res = res0; res; res = res->ai_next) { in ap_proxy_http_handler()
271 if (res0 != NULL) in ap_proxy_http_handler()
272 freeaddrinfo(res0); in ap_proxy_http_handler()
281 if (res0 != NULL) in ap_proxy_http_handler()
282 freeaddrinfo(res0); in ap_proxy_http_handler()
289 error = getaddrinfo(proxyhost, pbuf, &hints, &res0); in ap_proxy_http_handler()
301 for (res = res0; res; res = res->ai_next) { in ap_proxy_http_handler()
321 freeaddrinfo(res0); in ap_proxy_http_handler()
Dproxy_ftp.c567 struct addrinfo hints, *res, *res0; in ap_proxy_ftp_handler() local
701 error = getaddrinfo(desthost, portbuf, &hints, &res0); in ap_proxy_ftp_handler()
708 for (res = res0; res; res = res->ai_next) { in ap_proxy_ftp_handler()
727 freeaddrinfo(res0); in ap_proxy_ftp_handler()
738 freeaddrinfo(res0); in ap_proxy_ftp_handler()
/mirbsd/src/usr.bin/nc/
Dnetcat.c481 struct addrinfo *res, *res0; in remote_connect() local
487 res0 = res; in remote_connect()
489 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
490 res0->ai_protocol)) < 0) in remote_connect()
505 ahints.ai_family = res0->ai_family; in remote_connect()
520 if (connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
528 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
530 if (Iflag && res0) in remote_connect()
531 prepend_peer(res0->ai_addr); in remote_connect()
546 struct addrinfo *res, *res0; in local_listen() local
[all …]
/mirbsd/src/usr.bin/finger/
Dnet.c61 struct addrinfo hints, *res0, *res; local
72 error = getaddrinfo(host, "finger", &hints, &res0);
79 for (res = res0; res; res = res->ai_next) {
95 freeaddrinfo(res0);
106 freeaddrinfo(res0);
/mirbsd/src/usr.sbin/rdate/
Drfc868time.c71 struct addrinfo hints, *res0, *res; in rfc868time_client() local
82 error = getaddrinfo(hostname, "time", &hints, &res0); in rfc868time_client()
89 for (res = res0; res; res = res->ai_next) { in rfc868time_client()
104 freeaddrinfo(res0); in rfc868time_client()
Dntp.c128 struct addrinfo hints, *res0, *res; in ntp_client() local
140 ierror = getaddrinfo(hostname, "ntp", &hints, &res0); in ntp_client()
147 for (res = res0; res; res = res->ai_next) { in ntp_client()
183 freeaddrinfo(res0); in ntp_client()
/mirbsd/src/usr.sbin/popa3d/
Dstandalone.c120 struct addrinfo hints, *res, *res0; in do_standalone() local
130 error = getaddrinfo(NULL, sbuf, &hints, &res0); in do_standalone()
135 for (res = res0; res; res = res->ai_next) in do_standalone()
140 freeaddrinfo(res0); in do_standalone()
145 for (res = res0; res; res = res->ai_next) { in do_standalone()
175 freeaddrinfo(res0); in do_standalone()
/mirbsd/src/usr.sbin/ntpd/
Dconfig.c158 struct addrinfo hints, *res0, *res; in host_dns() local
167 error = getaddrinfo(s, NULL, &hints, &res0); in host_dns()
176 for (res = res0; res && cnt < MAX_SERVERS_DNS; res = res->ai_next) { in host_dns()
202 freeaddrinfo(res0); in host_dns()
/mirbsd/src/usr.sbin/httpd/src/modules/standard/
Dmod_unique_id.c183 struct addrinfo hints, *res, *res0; in unique_id_global_init() local
223 error = getaddrinfo(str, NULL, &hints, &res0); in unique_id_global_init()
232 for (res = res0; res; res = res->ai_next) { in unique_id_global_init()
243 freeaddrinfo(res0); in unique_id_global_init()
/mirbsd/src/usr.bin/systat/
Dnetcmds.c127 struct addrinfo hints, *res0, *res; in changeitems() local
152 if (getaddrinfo(args, "0", &hints, &res0) != 0) { in changeitems()
156 for (res = res0; res; res = res->ai_next) in changeitems()
158 freeaddrinfo(res0); in changeitems()
/mirbsd/src/libexec/spamd/
Dsync.c81 struct addrinfo hints, *res, *res0; in sync_addhost() local
88 if (getaddrinfo(name, NULL, &hints, &res0) != 0) in sync_addhost()
90 for (res = res0; res != NULL; res = res->ai_next) { in sync_addhost()
97 freeaddrinfo(res0); in sync_addhost()
102 freeaddrinfo(res0); in sync_addhost()
107 freeaddrinfo(res0); in sync_addhost()
114 freeaddrinfo(res0); in sync_addhost()
/mirbsd/src/usr.bin/cdio/
Dcddb.c148 struct addrinfo hints, *res0 = NULL, *res; in connect_to() local
155 error = getaddrinfo(host, serv, &hints, &res0); in connect_to()
161 for (res = res0; res; res = res->ai_next) { in connect_to()
175 freeaddrinfo(res0); in connect_to()
/mirbsd/src/usr.sbin/syslogd/
Dprivsep.c107 struct addrinfo hints, *res0; in priv_init() local
290 i = getaddrinfo(hostname, servname, &hints, &res0); in priv_init()
291 if (i != 0 || res0 == NULL) { in priv_init()
296 i = res0->ai_addrlen; in priv_init()
298 must_write(socks[0], res0->ai_addr, i); in priv_init()
299 freeaddrinfo(res0); in priv_init()
/mirbsd/src/usr.sbin/lpr/common_source/
Dcommon.c334 struct addrinfo hints, *res, *res0; in checkremote() local
367 error = getaddrinfo(RM, NULL, &hints, &res0); in checkremote()
379 for (res = res0; res; res = res->ai_next) { in checkremote()
423 freeaddrinfo(res0); in checkremote()
/mirbsd/src/libexec/login_tis/
Dlogin_tis.c409 struct addrinfo hints, *res, *res0; in tis_open() local
418 error = getaddrinfo(server, tc->port, &hints, &res0); in tis_open()
421 freeaddrinfo(res0); in tis_open()
426 for (res = res0; res != NULL; res = res->ai_next) { in tis_open()
437 freeaddrinfo(res0); in tis_open()
441 freeaddrinfo(res0); in tis_open()
/mirbsd/src/usr.bin/ftp/
Dftp.c119 struct addrinfo hints, *res, *res0; in hookup() local
132 error = getaddrinfo(host, port, &hints, &res0); in hookup()
152 error = getaddrinfo(host, pbuf, &hints, &res0); in hookup()
163 if (res0->ai_canonname) in hookup()
164 strlcpy(hostnamebuf, res0->ai_canonname, sizeof(hostnamebuf)); in hookup()
171 for (res = res0; res; res = res->ai_next) { in hookup()
173 if (res != res0) /* not on the first address */ in hookup()
175 if (res0->ai_next) /* if we have multiple possibilities */ in hookup()
216 freeaddrinfo(res0); in hookup()
221 freeaddrinfo(res0); in hookup()
[all …]
Dfetch.c126 struct addrinfo hints, *res0, *res; in url_get() local
351 error = getaddrinfo(host, port, &hints, &res0); in url_get()
358 error = getaddrinfo(host, pbuf, &hints, &res0); in url_get()
362 error = getaddrinfo(host, pbuf, &hints, &res0); in url_get()
371 for (res = res0; res; res = res->ai_next) { in url_get()
411 freeaddrinfo(res0); in url_get()
/mirbsd/src/usr.sbin/httpd/src/main/
Dhttp_vhost.c174 struct addrinfo hints, *res, *res0; in get_addresses() local
243 error = getaddrinfo(hoststr, portstr, &hints, &res0); in get_addresses()
244 if (error || !res0) { in get_addresses()
251 for (res=res0; res; res=res->ai_next) { in get_addresses()
276 freeaddrinfo(res0); in get_addresses()
Dhttp_config.c1620 struct addrinfo hints, *res0; in default_listeners() local
1632 gai = getaddrinfo(NULL, servbuf, &hints, &res0); in default_listeners()
1640 memcpy(&new->local_addr, res0->ai_addr, res0->ai_addrlen); in default_listeners()
1646 freeaddrinfo(res0); in default_listeners()
/mirbsd/src/gnu/usr.bin/lynx/WWW/Library/Implementation/
DHTTCP.c1801 LYNX_ADDRINFO *res = 0, *res0 = 0; in HTDoConnect() local
1833 res0 = HTGetAddrInfo(host, default_port); in HTDoConnect()
1834 if (res0 == NULL) { in HTDoConnect()
1879 for (res = res0; res; res = res->ai_next) { in HTDoConnect()
1985 if (res0) in HTDoConnect()
1986 freeaddrinfo(res0); in HTDoConnect()
2178 if (res0) in HTDoConnect()
2179 freeaddrinfo(res0); in HTDoConnect()
/mirbsd/src/lib/libc/net/
Dgetaddrinfo.c1265 struct addrinfo hints, *res0, *res; in _gethtent() local
1304 error = getaddrinfo(addr, NULL, &hints, &res0); in _gethtent()
1307 for (res = res0; res; res = res->ai_next) { in _gethtent()
1313 freeaddrinfo(res0); in _gethtent()
1318 return res0; in _gethtent()
/mirbsd/src/sys/arch/sparc/dev/
Dcgtwelvereg.h163 u_int32_t res0; member
/mirbsd/src/libexec/ftpd/
Dftpd.c398 struct addrinfo hints, *res, *res0; in main() local
415 error = getaddrinfo(NULL, "ftp", &hints, &res0); in main()
422 for (res = res0; res; res = res->ai_next) in main()
437 for (res = res0; res; res = res->ai_next) { in main()
465 freeaddrinfo(res0); in main()
/mirbsd/src/sbin/pfctl/
Dpfctl_parser.c1430 struct addrinfo hints, *res0, *res; in host_dns() local
1445 error = getaddrinfo(ps, NULL, &hints, &res0); in host_dns()
1449 for (res = res0; res; res = res->ai_next) { in host_dns()
1494 freeaddrinfo(res0); in host_dns()

12