Lines Matching refs:statp
1869 void _resolv_populate_res_for_net(res_state statp) { in _resolv_populate_res_for_net() argument
1870 if (statp == NULL) { in _resolv_populate_res_for_net()
1873 LOG(INFO) << __func__ << ": netid=" << statp->netid; in _resolv_populate_res_for_net()
1876 resolv_cache_info* info = find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net()
1886 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_net()
1887 if (statp->_u._ext.ext != NULL) { in _resolv_populate_res_for_net()
1888 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1889 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
1891 if ((size_t) ai->ai_addrlen <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
1892 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1894 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
1901 statp->nscount = nserv; in _resolv_populate_res_for_net()
1905 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
1906 char** pp = statp->dnsrch; in _resolv_populate_res_for_net()
1908 while (pp < statp->dnsrch + MAXDNSRCH && *p != -1) { in _resolv_populate_res_for_net()
1909 *pp++ = &statp->defdname[0] + *p++; in _resolv_populate_res_for_net()