Lines Matching defs:nconf

218 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf)
222 if (stat(nconf->nc_device, &sb) < 0) {
224 nconf->nc_device);
228 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics,
229 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev);
232 knconf->knc_semantics = nconf->nc_semantics;
233 knconf->knc_protofmly = nconf->nc_protofmly;
234 knconf->knc_proto = nconf->nc_proto;
329 * with version "vers" by using the nconf configuration data
340 struct netconfig *nconf, ushort_t port, struct t_info *tinfo,
350 if (nconf == NULL)
353 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) == -1)
361 if (rpcb_getaddr(prog, vers, nconf, &tbind->addr,
367 if (strcmp(nconf->nc_protofmly, NC_INET) == 0)
372 else if (strcmp(nconf->nc_protofmly, NC_INET6) == 0)
380 cl = clnt_tli_create(fd, nconf, &tbind->addr, prog, vers, 0, 0);
401 if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) {
530 struct netconfig *nconf = NULL;
544 * No nconf passed in.
546 * Try to get a nconf from /etc/netconfig filtered by
561 while (nconf = getnetpath(nc)) {
562 if (strcmp(nconf->nc_netid, proto) == 0) {
570 if ((strcmp(nconf->nc_protofmly, NC_INET) == 0
573 || strcmp(nconf->nc_protofmly, NC_INET6) == 0
577 (strcmp(nconf->nc_proto, NC_TCP) == 0 ||
578 strcmp(nconf->nc_proto, NC_UDP) == 0))
581 nconf = NULL;
586 if (nconf == NULL)
588 if ((nb = get_the_addr(hostname, prog, vers, nconf, port,
594 while (nconf = getnetpath(nc)) {
595 if (nconf->nc_flag & NC_VISIBLE) {
597 if ((nconf->nc_semantics == NC_TPI_COTS_ORD) ||
598 (nconf->nc_semantics == NC_TPI_COTS)) {
601 if ((strcmp(nconf->nc_protofmly,
605 || strcmp(nconf->nc_protofmly,
610 (strcmp(nconf->nc_proto, NC_TCP) == 0))
616 if (nconf == NULL) {
625 if ((nb = get_the_addr(hostname, prog, vers, nconf,
630 * nconf (nconf == NULL).
636 (strcmp(nconf->nc_protofmly, NC_INET6) == 0)) {
648 * Got nconf and nb. Now dup the netconfig structure (nconf)
651 *nconfp = getnetconfigent(nconf->nc_netid);