Home
last modified time | relevance | path

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

/system/netd/resolv/
DDns64Configuration.cpp76 android_net_context netcontext{}; in startPrefixDiscovery() local
77 mGetNetworkContextCallback(evalCfg.netId, 0, &netcontext); in startPrefixDiscovery()
81 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in startPrefixDiscovery()
82 if (doRfc7050PrefixDiscovery(netcontext, &evalCfg)) { in startPrefixDiscovery()
142 bool Dns64Configuration::doRfc7050PrefixDiscovery(const android_net_context& netcontext, in doRfc7050PrefixDiscovery() argument
156 android_getaddrinfofornetcontext(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res); in doRfc7050PrefixDiscovery()
DDnsProxyListener.h51 const android_net_context& netcontext);
77 const android_net_context& netcontext);
102 const android_net_context& netcontext);
128 const android_net_context& netcontext);
DDnsProxyListener.cpp509 const android_net_context& netcontext) in GetAddrInfoHandler() argument
510 : mClient(c), mHost(host), mService(service), mHints(hints), mNetContext(netcontext) {} in GetAddrInfoHandler()
744 android_net_context netcontext; in runCommand() local
745 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
748 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in runCommand()
761 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext); in runCommand()
800 android_net_context netcontext; in runCommand() local
801 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
804 netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS; in runCommand()
808 new DnsProxyListener::ResNSendHandler(cli, argv[3], flags, netcontext); in runCommand()
[all …]
Dgethnamaddr.cpp119 const android_net_context* netcontext, getnamaddr* info);
123 size_t hbuflen, const android_net_context* netcontext);
130 const struct android_net_context* netcontext,
497 size_t hbuflen, const android_net_context* netcontext) { in gethostbyname_internal() argument
498 res_setnetcontext(res, netcontext); in gethostbyname_internal()
504 const struct android_net_context* netcontext) { in android_gethostbyaddrfornetcontext_real() argument
546 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info); in android_gethostbyaddrfornetcontext_real()
554 const struct android_net_context* netcontext) { in android_gethostbyaddrfornetcontext_proxy_internal() argument
555 return android_gethostbyaddrfornetcontext_real(addr, len, af, hp, hbuf, hbuflen, netcontext); in android_gethostbyaddrfornetcontext_proxy_internal()
798 const android_net_context* netcontext, getnamaddr* info) { in dns_gethtbyaddr() argument
[all …]
Dres_init.cpp386 void res_setnetcontext(res_state statp, const struct android_net_context* netcontext) { in res_setnetcontext() argument
388 statp->netid = netcontext->dns_netid; in res_setnetcontext()
389 statp->_mark = netcontext->dns_mark; in res_setnetcontext()
390 if (netcontext->flags & NET_CONTEXT_FLAG_USE_EDNS) { in res_setnetcontext()
393 if (netcontext->flags & NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS) { in res_setnetcontext()
Dgetaddrinfo.cpp144 const android_net_context* netcontext, addrinfo** rv);
261 const android_net_context netcontext = { in getaddrinfo_numeric() local
268 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result); in getaddrinfo_numeric()
273 const struct android_net_context* netcontext, in android_getaddrinfofornetcontext() argument
283 assert(netcontext != nullptr); in android_getaddrinfofornetcontext()
416 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
439 struct addrinfo** res, const struct android_net_context* netcontext) { in explore_fqdn() argument
454 error = dns_getaddrinfo(hostname, pai, netcontext, &result); in explore_fqdn()
1382 const android_net_context* netcontext, addrinfo** rv) { in dns_getaddrinfo() argument
1398 query_ipv6 = have_ipv6(netcontext->app_mark, netcontext->uid); in dns_getaddrinfo()
[all …]
DDns64Configuration.h99 static bool doRfc7050PrefixDiscovery(const android_net_context& netcontext, Dns64Config* cfg);
DResolverController.cpp179 [](uint32_t netId, uint32_t uid, android_net_context* netcontext) { in ResolverController() argument
180 gResNetdCallbacks.get_network_context(netId, uid, netcontext); in ResolverController()
/system/netd/resolv/include/netd_resolv/
Dresolv.h87 android_net_context* netcontext);
/system/netd/server/
Dmain.cpp73 void getNetworkContextCallback(uint32_t netId, uint32_t uid, android_net_context* netcontext) { in getNetworkContextCallback() argument
74 gCtls->netCtrl.getNetworkContext(netId, uid, netcontext); in getNetworkContextCallback()
DNetworkController.h104 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const;
DNetworkController.cpp282 unsigned netId, uid_t uid, struct android_net_context* netcontext) const { in getNetworkContext()
325 if (netcontext) { in getNetworkContext()
326 *netcontext = nc; in getNetworkContext()