Home | History | Annotate | Download | only in rpcbind

Lines Matching defs:nconf

152 	struct netconfig *nconf;
197 nconf = getnetconfigent("local");
198 if (nconf == NULL)
203 init_transport(nconf);
205 while ((nconf = getnetconfig(nc_handle))) {
206 if (nconf->nc_flag & NC_VISIBLE) {
207 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly,
211 init_transport(nconf);
280 init_transport(struct netconfig *nconf)
299 if ((nconf->nc_semantics != NC_TPI_CLTS) &&
300 (nconf->nc_semantics != NC_TPI_COTS) &&
301 (nconf->nc_semantics != NC_TPI_COTS_ORD))
309 nconf->nc_netid, nconf->nc_nlookups);
310 for (i = 0, s = nconf->nc_lookups; i < nconf->nc_nlookups;
319 if (strcmp(nconf->nc_netid, "local") == 0) {
324 if ((fd = __rpc_nconf2fd(nconf)) < 0) {
329 "Cannot create socket for `%s'", nconf->nc_netid);
335 if (!__rpc_nconf2sockinfo(nconf, &si)) {
337 nconf->nc_netid);
341 if (strcmp(nconf->nc_netid, "local") == 0) {
364 if (strcmp(nconf->nc_netid, "local") != 0) {
394 if ((fd = __rpc_nconf2fd(nconf)) < 0) {
397 nconf->nc_semantics != NC_TPI_CLTS)
401 nconf->nc_netid);
451 if (strcmp(nconf->nc_netid, "local") != 0) {
456 nconf->nc_netid,
469 hosts[nhostsbak], nconf->nc_netid);
501 uaddr = taddr2uaddr(nconf, &nb);
508 if (nconf->nc_semantics != NC_TPI_CLTS)
511 my_xprt = (SVCXPRT *)svc_tli_create(fd, nconf, &taddr,
516 nconf->nc_netid);
527 syslog(LOG_ERR, "cannot bind %s: %m", nconf->nc_netid);
554 uaddr = taddr2uaddr(nconf, &nb);
561 if (nconf->nc_semantics != NC_TPI_CLTS)
564 my_xprt = (SVCXPRT *)svc_tli_create(fd, nconf, &taddr,
568 nconf->nc_netid);
577 if ((strcmp(nconf->nc_protofmly, NC_INET) == 0 &&
578 (strcmp(nconf->nc_proto, NC_TCP) == 0 ||
579 strcmp(nconf->nc_proto, NC_UDP) == 0)) ||
580 strcmp(nconf->nc_netid, "local") == 0) {
586 nconf->nc_netid);
598 if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
605 tcptrans = strdup(nconf->nc_netid);
616 tcp_uaddr = taddr2uaddr(nconf, &taddr.addr);
617 } else if (strcmp(nconf->nc_proto, NC_UDP) == 0) {
624 udptrans = strdup(nconf->nc_netid);
635 udp_uaddr = taddr2uaddr(nconf, &taddr.addr);
636 } else if (strcmp(nconf->nc_netid, "local") == 0) {
669 rbllist_add(PMAPPROG, PMAPVERS, nconf, &taddr.addr);
676 nconf->nc_netid);
679 rbllist_add(RPCBPROG, RPCBVERS, nconf, &taddr.addr);
684 nconf->nc_netid);
687 rbllist_add(RPCBPROG, RPCBVERS4, nconf, &taddr.addr);
690 status = add_bndlist(nconf, &taddr.addr);
695 nconf->nc_netid);
698 nconf->nc_netid);
701 nconf->nc_netid);
710 if (nconf->nc_semantics == NC_TPI_CLTS) {
711 status = create_rmtcall_fd(nconf);
718 nconf->nc_netid);
721 nconf->nc_netid, status);
810 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf,
823 rbl->rpcb_map.r_netid = strdup(nconf->nc_netid);
824 rbl->rpcb_map.r_addr = taddr2uaddr(nconf, addr);