Home
last modified time | relevance | path

Searched refs:hostname2 (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp643 char* hostname2 = strdup(hostname); in explore_numeric_scope() local
644 if (hostname2 == NULL) return EAI_MEMORY; in explore_numeric_scope()
646 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
647 addr = hostname2; in explore_numeric_scope()
658 free(hostname2); in explore_numeric_scope()
665 free(hostname2); in explore_numeric_scope()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp4205 constexpr char hostname2[] = "query2.example.com."; in TEST_F() local
4208 {hostname2, ns_type::ns_t_a, "1.2.3.5"}, in TEST_F()
4250 std::tie(result, timeTakenMs) = safe_getaddrinfo_time_taken(hostname2, nullptr, hints); in TEST_F()
4254 EXPECT_EQ(1U, GetNumQueries(dns, hostname2)); in TEST_F()