Searched refs:v6addr (Results 1 – 5 of 5) sorted by relevance
/packages/modules/DnsResolver/tests/fuzzer/ |
D | resolv_gethostbyaddr_fuzzer.cpp | 8 in6_addr v6addr; in TestResolvGethostbyaddr() local 9 fdp.ConsumeBool() ? fdp.ConsumeData(&v6addr, sizeof(v6addr)) // Fuzzing data. in TestResolvGethostbyaddr() 10 : inet_pton(AF_INET6, "::1.2.3.4", &v6addr); // Correct data. in TestResolvGethostbyaddr() 20 resolv_gethostbyaddr(&v6addr, mAddressLen, af, &hbuf, tmpbuf, sizeof(tmpbuf), &mNetContext, &hp, in TestResolvGethostbyaddr()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_unit_test.cpp | 483 constexpr char v6addr[] = "::1.2.3.4"; in TEST_F() local 550 dns.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F() 560 {AF_INET6, v6addr, event_ipv6}, in TEST_F() 865 constexpr char v6addr[] = "::127.0.0.3"; in TEST_F() local 945 mdnsv6.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F() 955 {AF_UNSPEC, {v4addr, v6addr}, event_ipv4v6}, in TEST_F() 957 {AF_INET6, {v6addr}, event_ipv6}, in TEST_F() 995 constexpr char v6addr[] = "::127.0.0.3"; in TEST_F() local 1017 mdnsv6.addMapping(illegalHostname, ns_type::ns_t_aaaa, v6addr); in TEST_F() 1378 constexpr char v6addr[] = "::1.2.3.4"; in TEST_F() local [all …]
|
D | resolv_integration_test.cpp | 3638 struct in6_addr v6addr; in TEST_F() local 3666 inet_pton(AF_INET6, "2001:db8::102:304", &v6addr); in TEST_F() 3667 result = gethostbyaddr(&v6addr, sizeof(v6addr), AF_INET6); in TEST_F() 3701 struct in6_addr v6addr; in TEST_F() local 3702 inet_pton(AF_INET6, "64:ff9b::1.2.3.4", &v6addr); in TEST_F() 3703 struct hostent* result = gethostbyaddr(&v6addr, sizeof(v6addr), AF_INET6); in TEST_F() 3719 inet_pton(AF_INET6, "64:ff9b::5.6.7.8", &v6addr); in TEST_F() 3720 result = gethostbyaddr(&v6addr, sizeof(v6addr), AF_INET6); in TEST_F() 3742 struct in6_addr v6addr; in TEST_F() local 3743 inet_pton(AF_INET6, host_addr, &v6addr); in TEST_F() [all …]
|
D | resolv_private_dns_test.cpp | 335 in6_addr v6addr; in expectQueriesAreBlocked() local 336 inet_pton(AF_INET6, "2001:db8::102:304", &v6addr); in expectQueriesAreBlocked() 337 EXPECT_FALSE(gethostbyaddr(&v6addr, sizeof(v6addr), AF_INET6)); in expectQueriesAreBlocked()
|
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 1463 struct in6_addr v6addr = mAddress; in doDns64ReverseLookup() local 1465 if ((v6addr.s6_addr32[0] != v6prefix->sin6_addr.s6_addr32[0]) || in doDns64ReverseLookup() 1466 (v6addr.s6_addr32[1] != v6prefix->sin6_addr.s6_addr32[1]) || in doDns64ReverseLookup() 1467 (v6addr.s6_addr32[2] != v6prefix->sin6_addr.s6_addr32[2])) { in doDns64ReverseLookup() 1472 struct in_addr v4addr = {.s_addr = v6addr.s6_addr32[3]}; in doDns64ReverseLookup() 1481 memcpy(addr, &v6addr, sizeof(v6addr)); in doDns64ReverseLookup()
|