Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DDnsProxyListener.cpp568 const android_net_context& netcontext) in GetAddrInfoHandler() argument
569 : mClient(c), mHost(host), mService(service), mHints(hints), mNetContext(netcontext) {} in GetAddrInfoHandler()
577 static bool evaluate_domain_name(const android_net_context &netcontext, in evaluate_domain_name() argument
581 return gResNetdCallbacks.evaluate_domain_name(netcontext, host); in evaluate_domain_name()
828 android_net_context netcontext; in runCommand() local
829 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
832 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in runCommand()
845 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext); in runCommand()
884 android_net_context netcontext; in runCommand() local
885 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
[all …]
Dres_init.cpp96 void res_init(ResState* statp, const struct android_net_context* _Nonnull netcontext, in res_init() argument
98 statp->netid = netcontext->dns_netid; in res_init()
99 statp->uid = netcontext->uid; in res_init()
100 statp->pid = netcontext->pid; in res_init()
107 statp->_mark = netcontext->dns_mark; in res_init()
110 statp->netcontext_flags = netcontext->flags; in res_init()
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.cpp145 const android_net_context* netcontext, addrinfo** rv,
265 const android_net_context netcontext = { in getaddrinfo_numeric() local
274 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result, in getaddrinfo_numeric()
324 const addrinfo* hints, const android_net_context* netcontext, in android_getaddrinfofornetcontext() argument
330 assert(netcontext != nullptr); in android_getaddrinfofornetcontext()
398 return resolv_getaddrinfo(hostname, servname, hints, netcontext, res, event); in android_getaddrinfofornetcontext()
411 const android_net_context* _Nonnull netcontext, addrinfo** _Nonnull res, in resolv_getaddrinfo() argument
419 assert(netcontext != nullptr); in resolv_getaddrinfo()
447 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext, event); in resolv_getaddrinfo()
463 addrinfo** res, const android_net_context* netcontext, in explore_fqdn() argument
[all …]
DDnsProxyListener.h53 const android_net_context& netcontext);
80 const android_net_context& netcontext);
107 const android_net_context& netcontext);
135 const android_net_context& netcontext);
DResolverController.cpp177 [](uint32_t netId, uint32_t uid, android_net_context* netcontext) { in ResolverController() argument
178 gResNetdCallbacks.get_network_context(netId, uid, netcontext); in ResolverController()
205 android_net_context netcontext; in setResolverConfiguration() local
206 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration()
219 gPrivateDnsConfiguration.set(resolverParams.netId, netcontext.app_mark, tlsServers, in setResolverConfiguration()
Dgethnamaddr.cpp113 const android_net_context* netcontext, getnamaddr* info,
389 const android_net_context* netcontext, hostent** result, in resolv_gethostbyname() argument
394 res_init(&res, netcontext, event); in resolv_gethostbyname()
476 size_t buflen, const struct android_net_context* netcontext, in resolv_gethostbyaddr() argument
519 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info, event); in resolv_gethostbyaddr()
685 const android_net_context* netcontext, getnamaddr* info, in dns_gethtbyaddr() argument
731 res_init(&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,
Dres_init.h22 void res_init(ResState* res, const struct android_net_context* netcontext,
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()