Lines Matching refs:nc
126 struct netconfig *nc; in get_server() local
136 while (nc = getnetconfig(nch)) { in get_server()
137 if ((nc->nc_flag & NC_VISIBLE) == 0) in get_server()
139 if (! netdir_getbyname(nc, &hs, &addrs)) { in get_server()
143 taddr2uaddr(nc, &(addrs->n_addrs[i])); in get_server()
144 __nis_netconfig2ep(nc, &(eps[num_ep])); in get_server()
192 struct netconfig *nc; /* Various handles */ in __rpc_get_time_offset() local
217 nc = NULL; in __rpc_get_time_offset()
264 while ((nc = getnetconfig(nc_handle)) != NULL) { in __rpc_get_time_offset()
267 if ((nc->nc_flag & NC_VISIBLE) == 0) in __rpc_get_time_offset()
272 if (__nis_netconfig_matches_ep(nc, &(ep[i]))) { in __rpc_get_time_offset()
330 nc = 0; in __rpc_get_time_offset()
340 if (nc != 0) in __rpc_get_time_offset()
341 freenetconfigent(nc); in __rpc_get_time_offset()
342 nc = getnetconfigent(epcand[i]->proto); in __rpc_get_time_offset()
344 if (nc == 0) { in __rpc_get_time_offset()
356 if (strcasecmp(nc->nc_protofmly, NC_INET) == 0) { in __rpc_get_time_offset()
362 } else if (strcasecmp(nc->nc_protofmly, NC_INET6) == 0) { in __rpc_get_time_offset()
367 freenetconfigent(nc); in __rpc_get_time_offset()
385 freenetconfigent(nc); in __rpc_get_time_offset()
405 clnt = __nis_clnt_create(RPC_ANYFD, nc, useua, 0, 0, RPCBPROG, in __rpc_get_time_offset()
430 freenetconfigent(nc); in __rpc_get_time_offset()
452 if (nc != 0) in __rpc_get_time_offset()
453 freenetconfigent(nc); in __rpc_get_time_offset()
454 nc = getnetconfigent(epcand[i]->proto); in __rpc_get_time_offset()
456 if (nc == 0) { in __rpc_get_time_offset()
466 if (strcasecmp(nc->nc_protofmly, NC_INET) == 0) { in __rpc_get_time_offset()
471 } else if (strcasecmp(nc->nc_protofmly, NC_INET6) == in __rpc_get_time_offset()
502 addr = uaddr2taddr(nc, ut); in __rpc_get_time_offset()
508 rtime_fd = t_open(nc->nc_device, O_RDWR, NULL); in __rpc_get_time_offset()
523 if (nc->nc_semantics == NC_TPI_CLTS) { in __rpc_get_time_offset()
609 if (nc) in __rpc_get_time_offset()
610 freenetconfigent(nc); in __rpc_get_time_offset()