Lines Matching refs:nconf

218 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf)  in convert_nconf_to_knconf()  argument
222 if (stat(nconf->nc_device, &sb) < 0) { in convert_nconf_to_knconf()
224 nconf->nc_device); in convert_nconf_to_knconf()
228 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics, in convert_nconf_to_knconf()
229 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev); in convert_nconf_to_knconf()
232 knconf->knc_semantics = nconf->nc_semantics; in convert_nconf_to_knconf()
233 knconf->knc_protofmly = nconf->nc_protofmly; in convert_nconf_to_knconf()
234 knconf->knc_proto = nconf->nc_proto; in convert_nconf_to_knconf()
340 struct netconfig *nconf, ushort_t port, struct t_info *tinfo, in get_the_addr() argument
350 if (nconf == NULL) in get_the_addr()
353 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) == -1) in get_the_addr()
361 if (rpcb_getaddr(prog, vers, nconf, &tbind->addr, in get_the_addr()
367 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) in get_the_addr()
372 else if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) in get_the_addr()
380 cl = clnt_tli_create(fd, nconf, &tbind->addr, prog, vers, 0, 0); in get_the_addr()
401 if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) { in get_the_addr()
530 struct netconfig *nconf = NULL; in get_addr() local
561 while (nconf = getnetpath(nc)) { in get_addr()
562 if (strcmp(nconf->nc_netid, proto) == 0) { in get_addr()
570 if ((strcmp(nconf->nc_protofmly, NC_INET) == 0 in get_addr()
573 || strcmp(nconf->nc_protofmly, NC_INET6) == 0 in get_addr()
577 (strcmp(nconf->nc_proto, NC_TCP) == 0 || in get_addr()
578 strcmp(nconf->nc_proto, NC_UDP) == 0)) in get_addr()
581 nconf = NULL; in get_addr()
586 if (nconf == NULL) in get_addr()
588 if ((nb = get_the_addr(hostname, prog, vers, nconf, port, in get_addr()
594 while (nconf = getnetpath(nc)) { in get_addr()
595 if (nconf->nc_flag & NC_VISIBLE) { in get_addr()
597 if ((nconf->nc_semantics == NC_TPI_COTS_ORD) || in get_addr()
598 (nconf->nc_semantics == NC_TPI_COTS)) { in get_addr()
601 if ((strcmp(nconf->nc_protofmly, in get_addr()
605 || strcmp(nconf->nc_protofmly, in get_addr()
610 (strcmp(nconf->nc_proto, NC_TCP) == 0)) in get_addr()
616 if (nconf == NULL) { in get_addr()
625 if ((nb = get_the_addr(hostname, prog, vers, nconf, in get_addr()
636 (strcmp(nconf->nc_protofmly, NC_INET6) == 0)) { in get_addr()
651 *nconfp = getnetconfigent(nconf->nc_netid); in get_addr()