Lines Matching defs:nconf

127 	struct netconfig *nconf;
168 nconf = getnetconfigent("local");
169 if (nconf == NULL)
170 nconf = getnetconfigent("unix");
171 if (nconf == NULL) {
178 init_transport(nconf);
180 while ((nconf = getnetconfig(nc_handle))) {
181 if (nconf->nc_flag & NC_VISIBLE) {
182 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly,
186 init_transport(nconf);
257 init_transport(struct netconfig *nconf)
274 if ((nconf->nc_semantics != NC_TPI_CLTS) &&
275 (nconf->nc_semantics != NC_TPI_COTS) &&
276 (nconf->nc_semantics != NC_TPI_COTS_ORD))
284 nconf->nc_netid, nconf->nc_nlookups);
285 for (i = 0, s = nconf->nc_lookups; i < nconf->nc_nlookups;
294 if ((strcmp(nconf->nc_netid, "local") == 0) ||
295 (strcmp(nconf->nc_netid, "unix") == 0)) {
300 if ((fd = __rpc_nconf2fd(nconf)) < 0) {
305 nconf->nc_netid);
310 if (!__rpc_nconf2sockinfo(nconf, &si)) {
312 nconf->nc_netid);
316 if ((strcmp(nconf->nc_netid, "local") == 0) ||
317 (strcmp(nconf->nc_netid, "unix") == 0)) {
335 if ((strcmp(nconf->nc_netid, "local") != 0) &&
336 (strcmp(nconf->nc_netid, "unix") != 0)) {
363 if ((fd = __rpc_nconf2fd(nconf)) < 0) {
366 nconf->nc_semantics != NC_TPI_CLTS)
369 "cannot create socket for %s", nconf->nc_netid);
422 nconf->nc_netid, gai_strerror(aicode));
431 hosts[nhostsbak], nconf->nc_netid);
445 nconf->nc_netid);
462 uaddr = taddr2uaddr(nconf, &nb);
469 if (nconf->nc_semantics != NC_TPI_CLTS)
472 my_xprt = (SVCXPRT *)svc_tli_create(fd, nconf, &taddr,
476 nconf->nc_netid);
485 syslog(LOG_ERR, "cannot bind %s: %m", nconf->nc_netid);
497 nconf->nc_netid);
511 uaddr = taddr2uaddr(nconf, &nb);
518 if (nconf->nc_semantics != NC_TPI_CLTS)
521 my_xprt = (SVCXPRT *)svc_tli_create(fd, nconf, &taddr,
525 nconf->nc_netid);
534 if ((strcmp(nconf->nc_protofmly, NC_INET) == 0 &&
535 (strcmp(nconf->nc_proto, NC_TCP) == 0 ||
536 strcmp(nconf->nc_proto, NC_UDP) == 0)) ||
537 (strcmp(nconf->nc_netid, "unix") == 0) ||
538 (strcmp(nconf->nc_netid, "local") == 0)) {
544 nconf->nc_netid);
555 if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
563 tcptrans = strdup(nconf->nc_netid);
568 tcp_uaddr = taddr2uaddr(nconf, &taddr.addr);
569 } else if (strcmp(nconf->nc_proto, NC_UDP) == 0) {
575 udptrans = strdup(nconf->nc_netid);
580 udp_uaddr = taddr2uaddr(nconf, &taddr.addr);
581 } else if (strcmp(nconf->nc_netid, "local") == 0)
583 else if (strcmp(nconf->nc_netid, "unix") == 0)
611 rbllist_add(PMAPPROG, PMAPVERS, nconf, &taddr.addr);
618 nconf->nc_netid);
621 rbllist_add(RPCBPROG, RPCBVERS, nconf, &taddr.addr);
626 nconf->nc_netid);
629 rbllist_add(RPCBPROG, RPCBVERS4, nconf, &taddr.addr);
632 status = add_bndlist(nconf, &taddr.addr);
637 nconf->nc_netid);
640 nconf->nc_netid);
643 nconf->nc_netid);
650 if (nconf->nc_semantics == NC_TPI_CLTS) {
651 status = create_rmtcall_fd(nconf);
658 nconf->nc_netid);
661 nconf->nc_netid, status);
742 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf,
755 rbl->rpcb_map.r_netid = strdup(nconf->nc_netid);
756 rbl->rpcb_map.r_addr = taddr2uaddr(nconf, addr);