Home
last modified time | relevance | path

Searched refs:nserv (Results 1 – 2 of 2) sorted by relevance

/system/netd/resolv/
Dres_init.cpp134 int nserv = 0; /* number of nameserver records read from file */ in res_vinit() local
149 u[nserv].sin.sin_addr.s_addr = INADDR_ANY; in res_vinit()
150 u[nserv].sin.sin_family = AF_INET; in res_vinit()
151 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in res_vinit()
152 nserv++; in res_vinit()
167 res_setservers(statp, u, nserv); in res_vinit()
195 if (nserv > 0) { in res_vinit()
196 statp->nscount = nserv; in res_vinit()
303 int i, nserv; in res_setservers() local
312 nserv = 0; in res_setservers()
[all …]
Dres_cache.cpp1878 int nserv; in _resolv_populate_res_for_net() local
1880 for (nserv = 0; nserv < MAXNS; nserv++) { in _resolv_populate_res_for_net()
1881 ai = info->nsaddrinfo[nserv]; 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()
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()