Lines Matching refs:nc
124 struct netconfig *nc; in get_server() local
134 while (nc = getnetconfig(nch)) { in get_server()
135 if ((nc->nc_flag & NC_VISIBLE) == 0) in get_server()
137 if (! netdir_getbyname(nc, &hs, &addrs)) { in get_server()
141 taddr2uaddr(nc, &(addrs->n_addrs[i])); in get_server()
142 __nis_netconfig2ep(nc, &(eps[num_ep])); in get_server()
190 struct netconfig *nc; /* Various handles */ in __rpc_get_time_offset() local
215 nc = NULL; in __rpc_get_time_offset()
262 while ((nc = getnetconfig(nc_handle)) != NULL) { in __rpc_get_time_offset()
265 if ((nc->nc_flag & NC_VISIBLE) == 0) in __rpc_get_time_offset()
270 if (__nis_netconfig_matches_ep(nc, &(ep[i]))) { in __rpc_get_time_offset()
328 nc = 0; in __rpc_get_time_offset()
338 if (nc != 0) in __rpc_get_time_offset()
339 freenetconfigent(nc); in __rpc_get_time_offset()
340 nc = getnetconfigent(epcand[i]->proto); in __rpc_get_time_offset()
342 if (nc == 0) { in __rpc_get_time_offset()
354 if (strcasecmp(nc->nc_protofmly, NC_INET) == 0) { in __rpc_get_time_offset()
360 } else if (strcasecmp(nc->nc_protofmly, NC_INET6) == 0) { in __rpc_get_time_offset()
365 freenetconfigent(nc); in __rpc_get_time_offset()
383 freenetconfigent(nc); in __rpc_get_time_offset()
403 clnt = __nis_clnt_create(RPC_ANYFD, nc, useua, 0, 0, RPCBPROG, in __rpc_get_time_offset()
428 freenetconfigent(nc); in __rpc_get_time_offset()
450 if (nc != 0) in __rpc_get_time_offset()
451 freenetconfigent(nc); in __rpc_get_time_offset()
452 nc = getnetconfigent(epcand[i]->proto); in __rpc_get_time_offset()
454 if (nc == 0) { in __rpc_get_time_offset()
464 if (strcasecmp(nc->nc_protofmly, NC_INET) == 0) { in __rpc_get_time_offset()
469 } else if (strcasecmp(nc->nc_protofmly, NC_INET6) == in __rpc_get_time_offset()
500 addr = uaddr2taddr(nc, ut); in __rpc_get_time_offset()
506 rtime_fd = t_open(nc->nc_device, O_RDWR, NULL); in __rpc_get_time_offset()
521 if (nc->nc_semantics == NC_TPI_CLTS) { in __rpc_get_time_offset()
607 if (nc) in __rpc_get_time_offset()
608 freenetconfigent(nc); in __rpc_get_time_offset()