Lines Matching refs:dns_base
1438 struct evdns_base *dns_base; in test_getaddrinfo_async() local
1443 dns_base = evdns_base_new(data->base, 0); in test_getaddrinfo_async()
1444 tt_assert(dns_base); in test_getaddrinfo_async()
1447 evdns_base_load_hosts(dns_base, NULL); in test_getaddrinfo_async()
1449 tt_assert(! evdns_base_set_option(dns_base, "timeout", "0.3")); in test_getaddrinfo_async()
1450 tt_assert(! evdns_base_set_option(dns_base, "getaddrinfo-allow-skew", "0.2")); in test_getaddrinfo_async()
1460 r = evdns_getaddrinfo(dns_base, "1.2.3.4", "http", in test_getaddrinfo_async()
1477 r = evdns_getaddrinfo(dns_base, "www.google.com", "80", in test_getaddrinfo_async()
1488 r = evdns_getaddrinfo(dns_base, "f::f", "8008", in test_getaddrinfo_async()
1502 r = evdns_getaddrinfo(dns_base, "5.6.7.8", NULL, in test_getaddrinfo_async()
1522 r = evdns_getaddrinfo(dns_base, NULL, "9090", in test_getaddrinfo_async()
1543 r = evdns_getaddrinfo(dns_base, NULL, "2", in test_getaddrinfo_async()
1564 r = evdns_getaddrinfo(dns_base, "LOCALHOST", "80", in test_getaddrinfo_async()
1585 r = evdns_getaddrinfo(dns_base, "LOCALHOST", "9999", in test_getaddrinfo_async()
1604 evdns_base_nameserver_ip_add(dns_base, buf); in test_getaddrinfo_async()
1611 r = evdns_getaddrinfo(dns_base, "both.example.com", "8000", in test_getaddrinfo_async()
1616 r = evdns_getaddrinfo(dns_base, "v4only.example.com", "8001", in test_getaddrinfo_async()
1622 r = evdns_getaddrinfo(dns_base, "v6only.example.com", "8002", in test_getaddrinfo_async()
1629 r = evdns_getaddrinfo(dns_base, "v4assert.example.com", "8003", in test_getaddrinfo_async()
1636 r = evdns_getaddrinfo(dns_base, "v6assert.example.com", "8004", in test_getaddrinfo_async()
1642 r = evdns_getaddrinfo(dns_base, "nosuchplace.example.com", "8005", in test_getaddrinfo_async()
1649 r = evdns_getaddrinfo(dns_base, "nosuchplace.example.com", "8006", in test_getaddrinfo_async()
1656 r = evdns_getaddrinfo(dns_base, "v6timeout.example.com", "8007", in test_getaddrinfo_async()
1663 r = evdns_getaddrinfo(dns_base, "v6timeout-nonexist.example.com", in test_getaddrinfo_async()
1670 r = evdns_getaddrinfo(dns_base, "both.example.com", in test_getaddrinfo_async()
1678 r = evdns_getaddrinfo(dns_base, "v4timeout.example.com", "8010", in test_getaddrinfo_async()
1683 r = evdns_getaddrinfo(dns_base, "all-timeout.example.com", "8011", in test_getaddrinfo_async()
1796 if (dns_base) in test_getaddrinfo_async()
1797 evdns_base_free(dns_base, 0); in test_getaddrinfo_async()
1803 struct evdns_base *dns_base; member
1868 gaic_launch(struct event_base *base, struct evdns_base *dns_base) in gaic_launch() argument
1874 status->dns_base = dns_base; in gaic_launch()
1877 status->request = evdns_getaddrinfo(dns_base, in gaic_launch()
1917 struct evdns_base *dns_base; member
1941 env->dns_base = evdns_base_new(env->base, 0); in testleak_setup()
1943 env->dns_base, "example.com", DNS_QUERY_NO_SEARCH, in testleak_setup()
1963 if (env->dns_base) in testleak_cleanup()
1964 evdns_base_free(env->dns_base, 0); in testleak_cleanup()
1982 evdns_cancel_request(env->dns_base, env->req); in test_dbg_leak_cancel()
1990 evdns_base_free(env->dns_base, send_err_shutdown); in test_dbg_leak_cancel()
1991 env->dns_base = 0; in test_dbg_leak_cancel()
2002 evdns_cancel_request(env->dns_base, env->req); in dbg_leak_resume()
2003 tt_assert(!evdns_base_resume(env->dns_base)); in dbg_leak_resume()
2006 tt_assert(!evdns_base_resume(env->dns_base)); in dbg_leak_resume()
2020 evdns_base_free(env->dns_base, send_err_shutdown); in dbg_leak_resume()
2021 env->dns_base = 0; in dbg_leak_resume()
2051 evdns_base_free(env->dns_base, send_err_shutdown); in test_dbg_leak_shutdown()
2052 env->dns_base = 0; in test_dbg_leak_shutdown()
2065 struct evdns_base *dns_base = NULL; in test_getaddrinfo_async_cancel_stress() local
2074 dns_base = evdns_base_new(base, 0); in test_getaddrinfo_async_cancel_stress()
2095 evdns_base_nameserver_sockaddr_add(dns_base, in test_getaddrinfo_async_cancel_stress()
2099 gaic_launch(base, dns_base); in test_getaddrinfo_async_cancel_stress()
2108 if (dns_base) in test_getaddrinfo_async_cancel_stress()
2109 evdns_base_free(dns_base, 1); in test_getaddrinfo_async_cancel_stress()
2359 struct evdns_base *dns_base; in test_set_so_rcvbuf_so_sndbuf() local
2361 dns_base = evdns_base_new(data->base, 0); in test_set_so_rcvbuf_so_sndbuf()
2362 tt_assert(dns_base); in test_set_so_rcvbuf_so_sndbuf()
2364 tt_assert(!evdns_base_set_option(dns_base, "so-rcvbuf", "10240")); in test_set_so_rcvbuf_so_sndbuf()
2365 tt_assert(!evdns_base_set_option(dns_base, "so-sndbuf", "10240")); in test_set_so_rcvbuf_so_sndbuf()
2368 tt_assert(!evdns_base_nameserver_ip_add(dns_base, "127.0.0.1")); in test_set_so_rcvbuf_so_sndbuf()
2371 if (dns_base) in test_set_so_rcvbuf_so_sndbuf()
2372 evdns_base_free(dns_base, 0); in test_set_so_rcvbuf_so_sndbuf()
2381 struct evdns_base *dns_base; in test_set_option() local
2404 dns_base = evdns_base_new(data->base, 0); in test_set_option()
2405 tt_assert(dns_base); in test_set_option()
2408 tt_assert(SUCCESS == evdns_base_set_option(dns_base, int_options[i], "0")); in test_set_option()
2409 tt_assert(SUCCESS == evdns_base_set_option(dns_base, int_options[i], "1")); in test_set_option()
2410 tt_assert(SUCCESS == evdns_base_set_option(dns_base, int_options[i], "10000")); in test_set_option()
2411 tt_assert(FAIL == evdns_base_set_option(dns_base, int_options[i], "foo")); in test_set_option()
2412 tt_assert(FAIL == evdns_base_set_option(dns_base, int_options[i], "3.14")); in test_set_option()
2416 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "1")); in test_set_option()
2417 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "0.001")); in test_set_option()
2418 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "3.14")); in test_set_option()
2419 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "10000")); in test_set_option()
2420 tt_assert(FAIL == evdns_base_set_option(dns_base, timeval_options[i], "0")); in test_set_option()
2421 tt_assert(FAIL == evdns_base_set_option(dns_base, timeval_options[i], "foo")); in test_set_option()
2425 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "8.8.8.8:80")); in test_set_option()
2426 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "1.2.3.4")); in test_set_option()
2427 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "::1:82")); in test_set_option()
2428 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "3::4")); in test_set_option()
2429 tt_assert(FAIL == evdns_base_set_option(dns_base, addr_port_options[i], "3.14")); in test_set_option()
2430 tt_assert(FAIL == evdns_base_set_option(dns_base, addr_port_options[i], "foo")); in test_set_option()
2436 if (dns_base) in test_set_option()
2437 evdns_base_free(dns_base, 0); in test_set_option()