Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp58 std::vector<std::string> extractIpAddressAnswers(uint8_t* buf, size_t bufLen, int ipType) { in extractIpAddressAnswers() argument
72 if (inet_ntop(ipType, (const char*) rdata, buffer, sizeof(buffer))) { in extractIpAddressAnswers()
79 void expectAnswersValid(int fd, int ipType, int expectedRcode) { in expectAnswersValid() argument
87 auto answers = extractIpAddressAnswers(buf, res, ipType); in expectAnswersValid()
91 EXPECT_EQ(1, inet_pton(ipType, answer.c_str(), pton)); in expectAnswersValid()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt403 ipType: IpType, in verifyNudFailureMetrics()
406 verify(mIpReachabilityMonitorMetrics, timeout(TEST_TIMEOUT_MS)).setNudIpType(eq(ipType)) in verifyNudFailureMetrics()
426 ipType: IpType, in runLoseNeighborStillProvisionedTest()
434 verifyNudFailureMetrics(eventType, ipType, lostNeighborType) in runLoseNeighborStillProvisionedTest()
726 ipType: IpType, in runNudProbeFailureMetricsTest()
730 verifyNudFailureMetrics(eventType, ipType, lostNeighborType) in runNudProbeFailureMetricsTest()
1016 ipType: IpType in verifyNudMacAddrChanged()
1023 verifyNudFailureMetrics(eventType, ipType, NUD_NEIGHBOR_GATEWAY) in verifyNudMacAddrChanged()
/packages/modules/DnsResolver/tests/
Dresolv_private_dns_test.cpp82 std::string toString(uint8_t* buf, int bufLen, int ipType) { in toString() argument
90 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
98 void expectAnswersValid(int fd, int ipType, const std::string& expectedAnswer) { in expectAnswersValid() argument
104 EXPECT_EQ(expectedAnswer, toString(buf, res, ipType)); in expectAnswersValid()
Dresolv_integration_test.cpp2437 std::string toString(uint8_t* buf, int bufLen, int ipType) { in toString() argument
2445 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
2475 void expectAnswersValid(int fd, int ipType, const std::string& expectedAnswer) { in expectAnswersValid() argument
2481 EXPECT_EQ(expectedAnswer, toString(buf, res, ipType)); in expectAnswersValid()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java793 final IpType ipType = (event.ip instanceof Inet6Address) ? IpType.IPV6 : IpType.IPV4;
794 mIpReachabilityMetrics.setNudIpType(ipType);
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt328 val ipType = buffer.get() in <lambda>() constant
331 if (ipType.toInt() == 2 /* IPPROTO_IGMP */ && ip_ver.toInt() == 0x46) { in <lambda>()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp162 int extractResNsendAnswers(std::span<const uint8_t> answer, int ipType, in extractResNsendAnswers() argument
176 if (ipType == ns_t_a) { in extractResNsendAnswers()
181 } else if (ipType == ns_t_aaaa) { in extractResNsendAnswers()