/bionic/libc/dns/include/ |
D | resolv_cache.h | 51 _resolv_cache_lookup( unsigned netid, 63 _resolv_cache_add( unsigned netid, 72 _resolv_cache_query_failed( unsigned netid,
|
D | resolv_netid.h | 98 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;
|
D | resolv_stats.h | 72 android_net_res_stats_get_info_for_net(unsigned netid, int* nscount,
|
D | resolv_private.h | 143 unsigned netid; /* NetId: cache key and socket mark */ member 201 _resolv_cache_get_resolver_stats( unsigned netid, struct __res_params* params, 209 _resolv_cache_add_resolver_stats_sample( unsigned netid, int revision_id, int ns,
|
/bionic/libc/dns/resolv/ |
D | res_cache.c | 1289 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 …]
|
D | res_send.c | 370 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, ¶ms, 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()
|
D | res_init.c | 194 statp->netid = NETID_UNSET; in __res_vinit() 774 statp->netid = netcontext->dns_netid; in res_setnetcontext()
|
/bionic/libc/dns/net/ |
D | getnameinfo.c | 124 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid, in android_getnameinfofornet() argument 131 serv, servlen, flags, netid, mark); in android_getnameinfofornet() 175 int flags, unsigned netid, unsigned mark) in getnameinfo_inet() argument 317 const struct android_net_context netcontext = { .app_netid = netid, .app_mark = mark }; in getnameinfo_inet()
|
D | gethnamaddr.c | 800 unsigned netid = __netdClientDispatch.netIdForResolv(netcontext->app_netid); in gethostbyname_internal() local 805 netid, in gethostbyname_internal() 909 unsigned netid = __netdClientDispatch.netIdForResolv(netcontext->app_netid); in android_gethostbyaddrfornetcontext_proxy_internal() local 912 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() 1601 android_gethostbyaddrfornet(const void *addr, socklen_t len, int af, unsigned netid, unsigned mark) in android_gethostbyaddrfornet() argument [all …]
|
D | getaddrinfo.c | 408 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()
|