/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 596 const android_net_context& netcontext) in GetAddrInfoHandler() argument 601 mNetContext(netcontext) {} in GetAddrInfoHandler() 603 static bool evaluate_domain_name(const android_net_context& netcontext, const char* host) { in evaluate_domain_name() argument 605 return gResNetdCallbacks.evaluate_domain_name(netcontext, host); in evaluate_domain_name() 835 android_net_context netcontext; in runCommand() local 836 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand() 839 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in runCommand() 851 (new GetAddrInfoHandler(cli, name, service, move(hints), netcontext))->spawn(); in runCommand() 889 android_net_context netcontext; in runCommand() local 890 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand() [all …]
|
D | resolv_private.h | 93 ResState(const android_net_context* netcontext, android::net::NetworkDnsEventReported* dnsEvent) in ResState() 94 : netid(netcontext->dns_netid), in ResState() 95 uid(netcontext->uid), in ResState() 96 pid(netcontext->pid), in ResState() 97 mark(netcontext->dns_mark), in ResState() 99 netcontext_flags(netcontext->flags) {} in ResState()
|
D | Dns64Configuration.cpp | 80 android_net_context netcontext{}; in startPrefixDiscovery() local 81 mGetNetworkContextCallback(evalCfg.netId, 0, &netcontext); in startPrefixDiscovery() 85 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in startPrefixDiscovery() 86 if (doRfc7050PrefixDiscovery(netcontext, &evalCfg)) { in startPrefixDiscovery() 147 bool Dns64Configuration::doRfc7050PrefixDiscovery(const android_net_context& netcontext, in doRfc7050PrefixDiscovery() argument 163 resolv_getaddrinfo(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res, &event); in doRfc7050PrefixDiscovery()
|
D | getaddrinfo.cpp | 144 const android_net_context* netcontext, addrinfo** rv, 264 const android_net_context netcontext = { in getaddrinfo_numeric() local 273 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result, in getaddrinfo_numeric() 323 const addrinfo* hints, const android_net_context* netcontext, in android_getaddrinfofornetcontext() argument 329 assert(netcontext != nullptr); in android_getaddrinfofornetcontext() 397 return resolv_getaddrinfo(hostname, servname, hints, netcontext, res, event); in android_getaddrinfofornetcontext() 410 const android_net_context* _Nonnull netcontext, addrinfo** _Nonnull res, in resolv_getaddrinfo() argument 418 assert(netcontext != nullptr); in resolv_getaddrinfo() 446 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext, event); in resolv_getaddrinfo() 462 addrinfo** res, const android_net_context* netcontext, in explore_fqdn() argument [all …]
|
D | DnsProxyListener.h | 69 std::unique_ptr<addrinfo> hints, const android_net_context& netcontext); 95 const android_net_context& netcontext); 121 const android_net_context& netcontext); 148 const android_net_context& netcontext);
|
D | ResolverController.cpp | 160 [](uint32_t netId, uint32_t uid, android_net_context* netcontext) { in ResolverController() argument 161 gResNetdCallbacks.get_network_context(netId, uid, netcontext); in ResolverController() 196 android_net_context netcontext; in setResolverConfiguration() local 197 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration() 210 int err = privateDnsConfiguration.set(resolverParams.netId, netcontext.app_mark, tlsServers, in setResolverConfiguration() 231 err = privateDnsConfiguration.setDoh(resolverParams.netId, netcontext.app_mark, tlsServers, in setResolverConfiguration()
|
D | gethnamaddr.cpp | 97 const android_net_context* netcontext, getnamaddr* info, 371 const android_net_context* netcontext, hostent** result, in resolv_gethostbyname() argument 378 ResState res(netcontext, event); in resolv_gethostbyname() 462 size_t buflen, const struct android_net_context* netcontext, in resolv_gethostbyaddr() argument 503 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info, event); in resolv_gethostbyaddr() 651 const android_net_context* netcontext, getnamaddr* info, in dns_gethtbyaddr() argument 696 ResState res(netcontext, event); in dns_gethtbyaddr()
|
D | getaddrinfo.h | 25 const addrinfo* hints, const android_net_context* netcontext, 30 const android_net_context* netcontext, addrinfo** res,
|
D | gethnamaddr.h | 32 const android_net_context* netcontext, hostent** result, 37 size_t buflen, const android_net_context* netcontext, hostent** result,
|
D | Dns64Configuration.h | 108 static bool doRfc7050PrefixDiscovery(const android_net_context& netcontext, Dns64Config* cfg);
|
/packages/modules/DnsResolver/include/netd_resolv/ |
D | resolv.h | 78 android_net_context* netcontext); 103 const android_net_context &netcontext, const char *host);
|
/packages/modules/DnsResolver/tests/ |
D | resolv_gold_test.cpp | 198 const android_net_context netcontext = GetNetContext(protocol); in VerifyGetAddrInfo() local 201 resolv_getaddrinfo(args.host().c_str(), nullptr, &hints, &netcontext, &res, &event); in VerifyGetAddrInfo() 213 const android_net_context netcontext = GetNetContext(protocol); in VerifyGetHostByName() local 216 sizeof(tmpbuf), &netcontext, &hp, &event); in VerifyGetHostByName()
|