Home
last modified time | relevance | path

Searched refs:netcontext (Results 1 – 12 of 12) sorted by relevance

/packages/modules/DnsResolver/
DDnsProxyListener.cpp592 const android_net_context& netcontext) in GetAddrInfoHandler() argument
597 mNetContext(netcontext) {} in GetAddrInfoHandler()
599 static bool evaluate_domain_name(const android_net_context& netcontext, const char* host) { in evaluate_domain_name() argument
601 return gResNetdCallbacks.evaluate_domain_name(netcontext, host); in evaluate_domain_name()
831 android_net_context netcontext; in runCommand() local
832 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
835 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in runCommand()
847 (new GetAddrInfoHandler(cli, name, service, move(hints), netcontext))->spawn(); in runCommand()
885 android_net_context netcontext; in runCommand() local
886 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
[all …]
Dresolv_private.h91 ResState(const android_net_context* netcontext, android::net::NetworkDnsEventReported* dnsEvent) in ResState()
92 : netid(netcontext->dns_netid), in ResState()
93 uid(netcontext->uid), in ResState()
94 pid(netcontext->pid), in ResState()
95 _mark(netcontext->dns_mark), in ResState()
97 netcontext_flags(netcontext->flags) {} in ResState()
DDns64Configuration.cpp82 android_net_context netcontext{}; in startPrefixDiscovery() local
83 mGetNetworkContextCallback(evalCfg.netId, 0, &netcontext); in startPrefixDiscovery()
87 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in startPrefixDiscovery()
88 if (doRfc7050PrefixDiscovery(netcontext, &evalCfg)) { in startPrefixDiscovery()
149 bool Dns64Configuration::doRfc7050PrefixDiscovery(const android_net_context& netcontext, in doRfc7050PrefixDiscovery() argument
165 resolv_getaddrinfo(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res, &event); in doRfc7050PrefixDiscovery()
Dgetaddrinfo.cpp144 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 …]
DDnsProxyListener.h69 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);
DResolverController.cpp159 [](uint32_t netId, uint32_t uid, android_net_context* netcontext) { in ResolverController() argument
160 gResNetdCallbacks.get_network_context(netId, uid, netcontext); in ResolverController()
194 android_net_context netcontext; in setResolverConfiguration() local
195 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration()
208 resolverParams.netId, netcontext.app_mark, tlsServers, resolverParams.tlsName, in setResolverConfiguration()
Dgethnamaddr.cpp113 const android_net_context* netcontext, getnamaddr* info,
389 const android_net_context* netcontext, hostent** result, in resolv_gethostbyname() argument
396 ResState res(netcontext, event); in resolv_gethostbyname()
478 size_t buflen, const struct android_net_context* netcontext, in resolv_gethostbyaddr() argument
521 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info, event); in resolv_gethostbyaddr()
687 const android_net_context* netcontext, getnamaddr* info, in dns_gethtbyaddr() argument
732 ResState res(netcontext, event); in dns_gethtbyaddr()
Dgetaddrinfo.h25 const addrinfo* hints, const android_net_context* netcontext,
30 const android_net_context* netcontext, addrinfo** res,
Dgethnamaddr.h32 const android_net_context* netcontext, hostent** result,
37 size_t buflen, const android_net_context* netcontext, hostent** result,
DDns64Configuration.h108 static bool doRfc7050PrefixDiscovery(const android_net_context& netcontext, Dns64Config* cfg);
/packages/modules/DnsResolver/include/netd_resolv/
Dresolv.h78 android_net_context* netcontext);
103 const android_net_context &netcontext, const char *host);
/packages/modules/DnsResolver/tests/
Dresolv_gold_test.cpp199 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()