Lines Matching defs:nconf
305 getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr)
316 _DIAGASSERT(nconf != NULL);
326 ad_cache = check_cache(host, nconf->nc_netid);
329 client = clnt_tli_create(RPC_ANYFD, nconf, addr,
356 if (!__rpc_nconf2sockinfo(nconf, &si)) {
368 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype);
384 ua = taddr2uaddr(nconf, &taddr);
402 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr,
411 tmpaddr = targaddr ? taddr2uaddr(nconf, &taddr) : NULL;
412 add_cache(host, nconf->nc_netid, &taddr, tmpaddr);
477 struct netconfig *nconf, *tmpnconf = NULL;
489 while ((nconf = getnetconfig(nc_handle)) != NULL) {
491 if ((strcmp(nconf->nc_protofmly, NC_INET6) == 0 ||
495 strcmp(nconf->nc_protofmly, NC_INET) == 0) &&
496 (nconf->nc_semantics == NC_TPI_COTS ||
497 nconf->nc_semantics == NC_TPI_COTS_ORD)) {
498 fd = __rpc_nconf2fd(nconf);
506 tmpnconf = nconf;
507 if (!strcmp(nconf->nc_protofmly, NC_INET))
533 const struct netconfig *nconf, /* Network structure of transport */
542 if (nconf == NULL) {
556 parms.r_addr = taddr2uaddr(__UNCONST(nconf), __UNCONST(address));
564 parms.r_netid = nconf->nc_netid;
592 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf)
606 if (nconf)
607 parms.r_netid = nconf->nc_netid;
630 got_entry(rpcb_entry_list_ptr relp, const struct netconfig *nconf)
636 _DIAGASSERT(nconf != NULL);
640 if ((strcmp(nconf->nc_proto, rmap->r_nc_proto) == 0) &&
641 (strcmp(nconf->nc_protofmly, rmap->r_nc_protofmly) == 0) &&
642 (nconf->nc_semantics == rmap->r_nc_semantics) &&
644 na = uaddr2taddr(nconf, rmap->r_maddr);
678 const struct netconfig *nconf, const char *host, CLIENT **clpp)
689 /* nconf is handled below */
694 if (nconf == NULL) {
703 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
713 if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
723 client = getclnthandle(host, nconf, &parms.r_addr);
733 pmapparms.pm_prot = strcmp(nconf->nc_proto, NC_TCP) ?
782 parms.r_netid = nconf->nc_netid; /* not really needed */
793 if ((nconf->nc_semantics == NC_TPI_COTS_ORD ||
794 nconf->nc_semantics == NC_TPI_COTS) &&
795 (strcmp(nconf->nc_protofmly, NC_LOOPBACK) != 0))
801 if (nconf->nc_semantics == NC_TPI_CLTS)
819 nconf->nc_protofmly) != 0) {
848 if ((address = got_entry(relp, nconf)) != NULL) {
881 if (client && ((nconf->nc_semantics == NC_TPI_COTS_ORD) ||
882 (nconf->nc_semantics == NC_TPI_COTS)))
884 if (client && nconf->nc_semantics == NC_TPI_CLTS)
893 client = getclnthandle(host, nconf, &parms.r_addr);
915 address = uaddr2taddr(nconf, ua);
954 if (nconf->nc_semantics != NC_TPI_CLTS) {
973 * Uses the transport specified in nconf.
980 const struct netconfig *nconf, struct netbuf *address,
987 if ((na = __rpcb_findaddr(program, version, nconf,
1013 rpcb_getmaps(const struct netconfig *nconf, const char *host)
1020 client = getclnthandle(host, nconf, NULL);
1064 const struct netconfig *nconf, /* Netconfig structure */
1084 client = getclnthandle(host, nconf, NULL);
1105 na = uaddr2taddr(__UNCONST(nconf), r.addr);
1145 struct netconfig *nconf;
1161 if ((nconf = __rpc_getconf(handle)) == NULL) {
1166 client = getclnthandle(host, nconf, NULL);
1200 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr)
1206 if (nconf == NULL) {
1235 rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr)
1242 if (nconf == NULL) {