Home
last modified time | relevance | path

Searched refs:ipType (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp57 std::vector<std::string> extractIpAddressAnswers(uint8_t* buf, size_t bufLen, int ipType) { in extractIpAddressAnswers() argument
71 if (inet_ntop(ipType, (const char*) rdata, buffer, sizeof(buffer))) { in extractIpAddressAnswers()
78 void expectAnswersValid(int fd, int ipType, int expectedRcode) { in expectAnswersValid() argument
86 auto answers = extractIpAddressAnswers(buf, res, ipType); in expectAnswersValid()
90 EXPECT_EQ(1, inet_pton(ipType, answer.c_str(), pton)); in expectAnswersValid()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp150 int extractResNsendAnswers(const uint8_t* answer, size_t anslen, int ipType, in extractResNsendAnswers() argument
164 if (ipType == ns_t_a) { in extractResNsendAnswers()
169 } else if (ipType == ns_t_aaaa) { in extractResNsendAnswers()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp2223 std::string toString(uint8_t* buf, int bufLen, int ipType) { in toString() argument
2233 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
2263 void expectAnswersValid(int fd, int ipType, const std::string& expectedAnswer) { in expectAnswersValid() argument
2269 EXPECT_EQ(expectedAnswer, toString(buf, res, ipType)); in expectAnswersValid()