Lines Matching refs:buf

112 		char buf[INET6_ADDRSTRLEN+1];  in dns_gethostbyname_cb()  local
118 const char *b = evutil_inet_ntop(AF_INET6, &in6_addrs[i], buf,sizeof(buf)); in dns_gethostbyname_cb()
333 char buf[INET6_ADDRSTRLEN+1]; in dns_server_gethostbyname_cb() local
336 const char *b = evutil_inet_ntop(AF_INET6, &in6_addrs[0],buf,sizeof(buf)); in dns_server_gethostbyname_cb()
546 char buf[64]; in dns_search_test_impl() local
557 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_test_impl()
560 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_test_impl()
660 char buf[64]; in dns_search_cancel_test() local
665 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_cancel_test()
668 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_cancel_test()
735 char buf[64]; in dns_retry_test_impl() local
742 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_retry_test_impl()
745 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_retry_test_impl()
909 char buf[64]; in dns_inflight_test_impl() local
922 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_inflight_test_impl()
925 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_inflight_test_impl()
973 char buf[64]; in dns_disable_when_inactive_no_ns_test() local
981 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_disable_when_inactive_no_ns_test()
984 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_disable_when_inactive_no_ns_test()
1266 char buf[128]; in test_bufferevent_connect_hostname() local
1293 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)dns_port); in test_bufferevent_connect_hostname()
1294 evdns_base_nameserver_ip_add(dns, buf); in test_bufferevent_connect_hostname()
1434 char buf[128]; in test_getaddrinfo_async() local
1603 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", dns_port); in test_getaddrinfo_async()
1604 evdns_base_nameserver_ip_add(dns_base, buf); in test_getaddrinfo_async()
2127 char buf[64]; in dns_client_fail_requests_test() local
2136 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_client_fail_requests_test()
2139 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_client_fail_requests_test()
2175 char buf[64]; in dns_client_fail_requests_getaddrinfo_test() local
2184 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_client_fail_requests_getaddrinfo_test()
2187 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_client_fail_requests_getaddrinfo_test()
2260 char buf[64]; in getaddrinfo_race_gotresolve_test() local
2286 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in getaddrinfo_race_gotresolve_test()
2289 tt_assert(!evdns_base_nameserver_ip_add(rp.dns, buf)); in getaddrinfo_race_gotresolve_test()