Home
last modified time | relevance | path

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

/bionic/libc/netbsd/resolv/
Dres_init.c174 int nserv = 0; /* number of nameserver records read from file */ in __res_vinit() local
194 u[nserv].sin.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1); in __res_vinit()
196 u[nserv].sin.sin_addr.s_addr = INADDR_ANY; in __res_vinit()
198 u[nserv].sin.sin_family = AF_INET; in __res_vinit()
199 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in __res_vinit()
201 u[nserv].sin.sin_len = sizeof(struct sockaddr_in); in __res_vinit()
203 nserv++; in __res_vinit()
206 u[nserv].sin6.sin6_addr = in6addr_loopback; in __res_vinit()
208 u[nserv].sin6.sin6_addr = in6addr_any; in __res_vinit()
210 u[nserv].sin6.sin6_family = AF_INET6; in __res_vinit()
[all …]
Dres_cache.c2453 int nserv; in _resolv_populate_res_for_iface() local
2473 for (nserv = 0; nserv < MAXNS; nserv++) { in _resolv_populate_res_for_iface()
2474 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_iface()
2481 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_iface()
2482 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_iface()
2486 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_iface()
2489 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_iface()
2496 statp->nscount = nserv; in _resolv_populate_res_for_iface()
2508 return nserv; in _resolv_populate_res_for_iface()