Lines Matching refs:uid
374 _have_ipv6(unsigned mark, uid_t uid) { in _have_ipv6() argument
381 return _find_src_addr(&addr.generic, NULL, mark, uid) == 1; in _have_ipv6()
385 _have_ipv4(unsigned mark, uid_t uid) { in _have_ipv4() argument
391 return _find_src_addr(&addr.generic, NULL, mark, uid) == 1; in _have_ipv4()
579 .uid = NET_CONTEXT_INVALID_UID, in android_getaddrinfofornet()
1787 _find_src_addr(const struct sockaddr *addr, struct sockaddr *src_addr, unsigned mark, uid_t uid) in _find_src_addr() argument
1817 if (uid > 0 && uid != NET_CONTEXT_INVALID_UID && fchown(sock, uid, (gid_t)-1) < 0) { in _find_src_addr()
1845 _rfc6724_sort(struct addrinfo *list_sentinel, unsigned mark, uid_t uid) in _rfc6724_sort() argument
1872 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.generic, mark, uid); in _rfc6724_sort()
1936 query_ipv6 = _have_ipv6(netcontext->app_mark, netcontext->uid); in _dns_getaddrinfo()
1937 query_ipv4 = _have_ipv4(netcontext->app_mark, netcontext->uid); in _dns_getaddrinfo()
2021 _rfc6724_sort(&sentinel, netcontext->app_mark, netcontext->uid); in _dns_getaddrinfo()