/packages/modules/Connectivity/tests/cts/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 58 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/ |
D | IpReachabilityMonitorTest.kt | 403 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/ |
D | resolv_private_dns_test.cpp | 82 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()
|
D | resolv_integration_test.cpp | 2437 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/ |
D | IpReachabilityMonitor.java | 793 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/ |
D | DscpPolicyTest.kt | 328 val ipType = buffer.get() in <lambda>() constant 331 if (ipType.toInt() == 2 /* IPPROTO_IGMP */ && ip_ver.toInt() == 0x46) { in <lambda>()
|
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 162 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()
|