Lines Matching refs:nconf

257 		struct netconfig *nconf;
264 while ((nconf = getnetconfig(confighandle)) != NULL) {
265 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
266 if (strcmp(nconf->nc_proto, NC_TCP) == 0 &&
268 netid_tcp = strdup(nconf->nc_netid);
275 if (strcmp(nconf->nc_proto, NC_UDP) == 0 &&
277 netid_udp = strdup(nconf->nc_netid);
353 struct netconfig *nconf;
361 nconf = getnetpath(handle->nhandle);
363 nconf = getnetconfig(handle->nhandle);
364 if (nconf == NULL)
366 if ((nconf->nc_semantics != NC_TPI_CLTS) &&
367 (nconf->nc_semantics != NC_TPI_COTS) &&
368 (nconf->nc_semantics != NC_TPI_COTS_ORD))
372 if (!(nconf->nc_flag & NC_VISIBLE))
378 if (!(nconf->nc_flag & NC_VISIBLE))
382 if ((nconf->nc_semantics != NC_TPI_COTS) &&
383 (nconf->nc_semantics != NC_TPI_COTS_ORD))
387 if (!(nconf->nc_flag & NC_VISIBLE))
391 if (nconf->nc_semantics != NC_TPI_CLTS)
395 if (((nconf->nc_semantics != NC_TPI_COTS) &&
396 (nconf->nc_semantics != NC_TPI_COTS_ORD)) ||
397 (strcmp(nconf->nc_protofmly, NC_INET)
399 && strcmp(nconf->nc_protofmly, NC_INET6))
404 strcmp(nconf->nc_proto, NC_TCP))
408 if ((nconf->nc_semantics != NC_TPI_CLTS) ||
409 (strcmp(nconf->nc_protofmly, NC_INET)
411 && strcmp(nconf->nc_protofmly, NC_INET6))
416 strcmp(nconf->nc_proto, NC_UDP))
422 return (nconf);
516 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
521 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || (
522 strcmp(nconf->nc_netid, "unix") == 0 &&
527 __rpc_seman2socktype((int)nconf->nc_semantics);
538 __rpc_nconf2fd(const struct netconfig *nconf)
542 if (!__rpc_nconf2sockinfo(nconf, &si))
552 struct netconfig *nconf;
554 nconf = getnetconfigent("local");
559 if (strcmp(na_cvt[i].netid, "local") == 0 && nconf == NULL) {
566 if (nconf != NULL)
567 freenetconfigent(nconf);
571 if (nconf != NULL)
572 freenetconfigent(nconf);
578 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf)
582 if (!__rpc_nconf2sockinfo(nconf, &si))
588 uaddr2taddr(const struct netconfig *nconf, const char *uaddr)
592 if (!__rpc_nconf2sockinfo(nconf, &si))