Lines Matching defs:nconf

116 	struct netconfig *nconf;
136 while (nconf = __rpc_getconf(handle)) {
139 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) {
141 (void) rpcb_unset(prognum, versnum, nconf);
143 dispatch, nconf) == FALSE)
147 prognum, versnum, nconf->nc_netid);
156 xprt = svc_tp_create(dispatch, prognum, versnum, nconf);
178 * It tries to create a server for "nconf" and registers the service
183 const rpcvers_t versnum, const struct netconfig *nconf)
188 if (nconf == NULL) {
197 xprt = svc_tli_create_common(RPC_ANYFD, nconf, NULL, 0, 0, anon_mlp);
201 (void) rpcb_unset(prognum, versnum, (struct netconfig *)nconf);
202 if (svc_reg(xprt, prognum, versnum, dispatch, nconf) == FALSE) {
205 prognum, versnum, nconf->nc_netid);
213 svc_tli_create(const int fd, const struct netconfig *nconf,
216 return (svc_tli_create_common(fd, nconf, bindaddr, sendsz, recvsz, 0));
221 * provider (nconf cannot be NULL then). If the t_state is T_UNBND and
229 svc_tli_create_common(const int ofd, const struct netconfig *nconf,
241 if (nconf == NULL) {
246 fd = t_open(nconf->nc_device, O_RDWR, &tinfo);
253 "connection for %s: %s", nconf->nc_netid, errorstr);
282 if (nconf) {
284 if (strcmp(nconf->nc_netid, "udp6") == 0) {
298 } else if (strcmp(nconf->nc_netid, "udp") == 0) {
331 (strcmp(nconf->nc_protofmly, NC_INET) == 0 ||
332 strcmp(nconf->nc_protofmly, NC_INET6) == 0)) {
351 tcp = nconf ? (strcmp(nconf->nc_proto, NC_TCP) == 0) : 0;
352 if (nconf &&
353 (tcp || (strcmp(nconf->nc_proto, NC_UDP) == 0)) &&
360 nconf->nc_netid);
409 if (nconf) {
411 if (strcmp(nconf->nc_netid, "udp6") == 0) {
425 } else if (strcmp(nconf->nc_netid, "udp") == 0) {
494 if (!nconf || !xprt)
498 (strcmp(nconf->nc_protofmly, "inet") == 0))
535 if (nconf) {
536 xprt->xp_netid = strdup(nconf->nc_netid);
543 xprt->xp_tp = strdup(nconf->nc_device);