Lines Matching defs:nconf
217 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf)
221 if (stat(nconf->nc_device, &sb) < 0) {
223 nconf->nc_device);
227 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics,
228 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev);
231 knconf->knc_semantics = nconf->nc_semantics;
232 knconf->knc_protofmly = nconf->nc_protofmly;
233 knconf->knc_proto = nconf->nc_proto;
328 * with version "vers" by using the nconf configuration data
339 struct netconfig *nconf, ushort_t port, struct t_info *tinfo,
349 if (nconf == NULL)
352 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) == -1)
359 if (rpcb_getaddr(prog, vers, nconf, &tbind->addr,
365 if (strcmp(nconf->nc_protofmly, NC_INET) == 0)
369 else if (strcmp(nconf->nc_protofmly, NC_INET6) == 0)
376 cl = clnt_tli_create(fd, nconf, &tbind->addr, prog, vers, 0, 0);
397 if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) {
522 struct netconfig *nconf = NULL;
536 * No nconf passed in.
538 * Try to get a nconf from /etc/netconfig filtered by
553 while (nconf = getnetpath(nc)) {
554 if (strcmp(nconf->nc_netid, proto) == 0) {
562 if ((strcmp(nconf->nc_protofmly, NC_INET) == 0
565 || strcmp(nconf->nc_protofmly, NC_INET6) == 0
569 (strcmp(nconf->nc_proto, NC_TCP) == 0 ||
570 strcmp(nconf->nc_proto, NC_UDP) == 0))
573 nconf = NULL;
578 if (nconf == NULL)
580 if ((nb = get_the_addr(hostname, prog, vers, nconf, port,
586 while (nconf = getnetpath(nc)) {
587 if (nconf->nc_flag & NC_VISIBLE) {
589 if ((nconf->nc_semantics == NC_TPI_COTS_ORD) ||
590 (nconf->nc_semantics == NC_TPI_COTS)) {
593 if ((strcmp(nconf->nc_protofmly,
597 || strcmp(nconf->nc_protofmly,
602 (strcmp(nconf->nc_proto, NC_TCP) == 0))
608 if (nconf == NULL) {
617 if ((nb = get_the_addr(hostname, prog, vers, nconf,
622 * nconf (nconf == NULL).
628 (strcmp(nconf->nc_protofmly, NC_INET6) == 0)) {
640 * Got nconf and nb. Now dup the netconfig structure (nconf)
643 *nconfp = getnetconfigent(nconf->nc_netid);