Lines Matching defs:loc
225 uint8_t loc = nlip->nli_loc;
231 if (addr >= nlp->nl_locations[loc]->nl_servers[serv]->ns_addrcount) {
236 if (serv >= nlp->nl_locations[loc]->nl_servcount) {
239 loc++;
240 if (loc >= nlp->nl_numlocs)
241 loc = 0; /* after last location, wrap back around to first location */
251 if ((loc == nlip->nli_loc) && (serv == nlip->nli_serv) && (addr == nlip->nli_addr))
253 if (addr >= nlp->nl_locations[loc]->nl_servers[serv]->ns_addrcount)
256 nlip->nli_loc = loc;
955 uint32_t loc, serv;
956 for (loc=0; loc < nmp->nm_locations.nl_numlocs; loc++) {
957 for (serv=0; serv < nmp->nm_locations.nl_locations[loc]->nl_servcount; serv++) {
958 if (nmp->nm_locations.nl_locations[loc]->nl_servers[serv]->ns_addrcount)
962 nmp->nm_locations.nl_locations[loc]->nl_servers[serv]->ns_name));
964 if (serv < nmp->nm_locations.nl_locations[loc]->nl_servcount)
967 if (loc >= nmp->nm_locations.nl_numlocs) {