Home
last modified time | relevance | path

Searched refs:netid (Results 1 – 10 of 10) sorted by relevance

/bionic/libc/dns/include/
Dresolv_cache.h51 _resolv_cache_lookup( unsigned netid,
63 _resolv_cache_add( unsigned netid,
72 _resolv_cache_query_failed( unsigned netid,
Dresolv_netid.h98 extern int _resolv_set_nameservers_for_net(unsigned netid, const char** servers,
102 extern void _resolv_flush_cache_for_net(unsigned netid) __used_in_netd;
105 extern void _resolv_delete_cache_for_net(unsigned netid) __used_in_netd;
Dresolv_stats.h72 android_net_res_stats_get_info_for_net(unsigned netid, int* nscount,
Dresolv_private.h142 unsigned netid; /* NetId: cache key and socket mark */ member
200 _resolv_cache_get_resolver_stats( unsigned netid, struct __res_params* params,
208 _resolv_cache_add_resolver_stats_sample( unsigned netid, int revision_id, int ns,
/bionic/libc/dns/resolv/
Dres_cache.c1289 unsigned netid; member
1311 static struct resolv_cache* _find_named_cache_locked(unsigned netid);
1337 _cache_check_pending_request_locked( struct resolv_cache** cache, Entry* key, unsigned netid ) in _cache_check_pending_request_locked() argument
1367 *cache = _find_named_cache_locked(netid); in _cache_check_pending_request_locked()
1404 _resolv_cache_query_failed( unsigned netid, in _resolv_cache_query_failed() argument
1416 cache = _find_named_cache_locked(netid); in _resolv_cache_query_failed()
1425 static struct resolv_cache_info* _find_cache_info_locked(unsigned netid);
1674 _resolv_cache_lookup( unsigned netid, in _resolv_cache_lookup() argument
1701 cache = _find_named_cache_locked(netid); in _resolv_cache_lookup()
1717 if (!_cache_check_pending_request_locked(&cache, key, netid) || cache == NULL) { in _resolv_cache_lookup()
[all …]
Dres_send.c370 statp->netid, buf, buflen, in res_nsend()
384 _resolv_cache_query_failed(statp->netid, buf, buflen); in res_nsend()
483 int revision_id = _resolv_cache_get_resolver_stats(statp->netid, &params, stats); in res_nsend()
518 _resolv_cache_add(statp->netid, buf, buflen, in res_nsend()
557 _resolv_cache_add_resolver_stats_sample(statp->netid, revision_id, in res_nsend()
584 _resolv_cache_add_resolver_stats_sample(statp->netid, revision_id, in res_nsend()
616 _resolv_cache_add(statp->netid, buf, buflen, in res_nsend()
670 _resolv_cache_query_failed(statp->netid, buf, buflen); in res_nsend()
675 _resolv_cache_query_failed(statp->netid, buf, buflen); in res_nsend()
Dres_init.c194 statp->netid = NETID_UNSET; in __res_vinit()
774 statp->netid = netcontext->dns_netid; in res_setnetcontext()
/bionic/libc/dns/net/
Dgetnameinfo.c121 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid, in android_getnameinfofornet() argument
128 serv, servlen, flags, netid, mark); in android_getnameinfofornet()
172 int flags, unsigned netid, unsigned mark) in getnameinfo_inet() argument
314 const struct android_net_context netcontext = { .app_netid = netid, .app_mark = mark }; in getnameinfo_inet()
Dgethnamaddr.c801 unsigned netid = __netdClientDispatch.netIdForResolv(netcontext->app_netid); in gethostbyname_internal() local
806 netid, in gethostbyname_internal()
910 unsigned netid = __netdClientDispatch.netIdForResolv(netcontext->app_netid); in android_gethostbyaddrfornetcontext_proxy_internal() local
913 addrStr, len, af, netid) < 0) { in android_gethostbyaddrfornetcontext_proxy_internal()
1562 static struct android_net_context make_context(unsigned netid, unsigned mark) { in make_context() argument
1564 netcontext.app_netid = netid; in make_context()
1566 netcontext.dns_netid = netid; in make_context()
1572 android_gethostbynamefornet(const char *name, int af, unsigned netid, unsigned mark) in android_gethostbynamefornet() argument
1574 const struct android_net_context netcontext = make_context(netid, mark); in android_gethostbynamefornet()
1600 android_gethostbyaddrfornet(const void *addr, socklen_t len, int af, unsigned netid, unsigned mark) in android_gethostbyaddrfornet() argument
[all …]
Dgetaddrinfo.c408 const struct addrinfo *hints, struct addrinfo **res, unsigned netid) in android_getaddrinfo_proxy() argument
429 netid = __netdClientDispatch.netIdForResolv(netid); in android_getaddrinfo_proxy()
439 netid) < 0) { in android_getaddrinfo_proxy()
572 const struct addrinfo *hints, unsigned netid, unsigned mark, struct addrinfo **res) in android_getaddrinfofornet() argument
575 .app_netid = netid, in android_getaddrinfofornet()
577 .dns_netid = netid, in android_getaddrinfofornet()