Lines Matching refs:xprt
115 SVCXPRT *xprt; in svc_create() local
139 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { in svc_create()
142 if (svc_reg(l->xprt, prognum, versnum, in svc_create()
156 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); in svc_create()
157 if (xprt) { in svc_create()
158 if (!__svc_add_to_xlist(&_svc_xprtlist, xprt, in svc_create()
185 SVCXPRT *xprt; in svc_tp_create() local
197 xprt = svc_tli_create_common(RPC_ANYFD, nconf, NULL, 0, 0, anon_mlp); in svc_tp_create()
198 if (xprt == NULL) in svc_tp_create()
202 if (svc_reg(xprt, prognum, versnum, dispatch, nconf) == FALSE) { in svc_tp_create()
206 SVC_DESTROY(xprt); in svc_tp_create()
209 return (xprt); in svc_tp_create()
233 SVCXPRT *xprt = NULL; /* service handle */ in svc_tli_create_common() local
489 xprt = svc_fd_create_private(fd, sendsz, in svc_tli_create_common()
492 xprt = svc_vc_create_private(fd, sendsz, in svc_tli_create_common()
494 if (!nconf || !xprt) in svc_tli_create_common()
499 (void) __svc_vc_setflag(xprt, TRUE); in svc_tli_create_common()
502 xprt = svc_dg_create_private(fd, sendsz, recvsz); in svc_tli_create_common()
509 if (xprt == NULL) in svc_tli_create_common()
519 xprt->xp_ltaddr = tres->addr; in svc_tli_create_common()
521 xprt->xp_type = tinfo.servtype; in svc_tli_create_common()
526 xprt->xp_rtaddr.len = 0; in svc_tli_create_common()
527 xprt->xp_rtaddr.maxlen = __rpc_get_a_size(tinfo.addr); in svc_tli_create_common()
530 if ((xprt->xp_rtaddr.buf = malloc(xprt->xp_rtaddr.maxlen)) == NULL) { in svc_tli_create_common()
536 xprt->xp_netid = strdup(nconf->nc_netid); in svc_tli_create_common()
537 if (xprt->xp_netid == NULL) { in svc_tli_create_common()
538 if (xprt->xp_rtaddr.buf) in svc_tli_create_common()
539 free(xprt->xp_rtaddr.buf); in svc_tli_create_common()
543 xprt->xp_tp = strdup(nconf->nc_device); in svc_tli_create_common()
544 if (xprt->xp_tp == NULL) { in svc_tli_create_common()
545 if (xprt->xp_rtaddr.buf) in svc_tli_create_common()
546 free(xprt->xp_rtaddr.buf); in svc_tli_create_common()
547 if (xprt->xp_netid) in svc_tli_create_common()
548 free(xprt->xp_netid); in svc_tli_create_common()
558 xprt_register(xprt); in svc_tli_create_common()
559 return (xprt); in svc_tli_create_common()
566 if (xprt) { in svc_tli_create_common()
568 xprt->xp_fd = RPC_ANYFD; in svc_tli_create_common()
569 SVC_DESTROY(xprt); in svc_tli_create_common()