/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 525 const android_net_context* netcontext) { in synthesizeNat64PrefixWithARecord() argument 652 resolv_rfc6724_sort(&sorting_head, netcontext->app_mark, netcontext->uid); in synthesizeNat64PrefixWithARecord() 760 const android_net_context& netcontext) in GetAddrInfoHandler() argument 765 mNetContext(netcontext) {} in GetAddrInfoHandler() 772 static bool evaluate_domain_name(const android_net_context& netcontext, const char* host) { in evaluate_domain_name() argument 774 return gResNetdCallbacks.evaluate_domain_name(netcontext, host); in evaluate_domain_name() 1026 android_net_context netcontext; in runCommand() local 1027 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand() 1030 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in runCommand() 1042 (new GetAddrInfoHandler(cli, name, service, std::move(hints), netcontext))->spawn(); 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 | 81 android_net_context netcontext{}; in startPrefixDiscovery() local 82 thiz->mGetNetworkContextCallback(evalCfg.netId, 0, &netcontext); in startPrefixDiscovery() 86 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in startPrefixDiscovery() 87 if (doRfc7050PrefixDiscovery(netcontext, &evalCfg)) { in startPrefixDiscovery() 148 bool Dns64Configuration::doRfc7050PrefixDiscovery(const android_net_context& netcontext, in doRfc7050PrefixDiscovery() argument 164 resolv_getaddrinfo(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res, &event); in doRfc7050PrefixDiscovery()
|
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 | getaddrinfo.cpp | 143 const android_net_context* netcontext, addrinfo** rv, 249 const android_net_context netcontext = { in getaddrinfo_numeric() local 258 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result, in getaddrinfo_numeric() 308 const addrinfo* hints, const android_net_context* netcontext, in android_getaddrinfofornetcontext() argument 314 assert(netcontext != nullptr); in android_getaddrinfofornetcontext() 382 return resolv_getaddrinfo(hostname, servname, hints, netcontext, res, event); in android_getaddrinfofornetcontext() 395 const android_net_context* _Nonnull netcontext, addrinfo** _Nonnull res, in resolv_getaddrinfo() argument 403 assert(netcontext != nullptr); in resolv_getaddrinfo() 431 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext, event); in resolv_getaddrinfo() 447 addrinfo** res, const android_net_context* netcontext, in explore_fqdn() argument [all …]
|
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 | ResolverController.cpp | 163 [](uint32_t netId, uint32_t uid, android_net_context* netcontext) { in ResolverController() argument 164 gResNetdCallbacks.get_network_context(netId, uid, netcontext); in ResolverController() 204 android_net_context netcontext; in setResolverConfiguration() local 205 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration() 218 int err = privateDnsConfiguration.set(resolverParams.netId, netcontext.app_mark, in setResolverConfiguration()
|
D | gethnamaddr.cpp | 97 const android_net_context* netcontext, getnamaddr* info, 374 const android_net_context* netcontext, hostent** result, in resolv_gethostbyname() argument 381 ResState res(netcontext, event); in resolv_gethostbyname() 465 size_t buflen, const struct android_net_context* netcontext, in resolv_gethostbyaddr() argument 506 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info, event); in resolv_gethostbyaddr() 654 const android_net_context* netcontext, getnamaddr* info, in dns_gethtbyaddr() argument 699 ResState res(netcontext, event); in dns_gethtbyaddr()
|
D | Dns64Configuration.h | 109 static bool doRfc7050PrefixDiscovery(const android_net_context& netcontext, Dns64Config* cfg);
|
/packages/modules/DnsResolver/include/netd_resolv/ |
D | resolv.h | 85 android_net_context* netcontext); 110 const android_net_context &netcontext, const char *host);
|
/packages/modules/DnsResolver/tests/ |
D | resolv_gold_test.cpp | 199 const android_net_context netcontext = GetNetContext(protocol); in VerifyGetAddrInfo() local 202 resolv_getaddrinfo(args.host().c_str(), nullptr, &hints, &netcontext, &res, &event); in VerifyGetAddrInfo() 214 const android_net_context netcontext = GetNetContext(protocol); in VerifyGetHostByName() local 217 sizeof(tmpbuf), &netcontext, &hp, &event); in VerifyGetHostByName()
|