Lines Matching refs:xprt
66 static int getprognum(long *prognum, SVCXPRT **xprt, char *fd_str,
75 SVCXPRT *xprt = NULL;
108 if (!getprognum(&prognum, &xprt, fd_str, prog_str, YPDNSVERS, tp)) {
109 syslog(LOG_ERR, "can't create resolv xprt for transient.\n");
141 /* close fd, free xprt, but leave mapping */
142 if (xprt)
143 svc_destroy(xprt);
200 static int getprognum(long *prognum, SVCXPRT **xprt, char *fd_str,
215 *xprt = NULL;
226 * - close the fd (after exec), free xprt, leave mapping intact
231 *xprt = svcudp_bufcreate(RPC_ANYSOCK, 0, 0);
234 *xprt = svctcp_create(RPC_ANYSOCK, 0, 0);
236 if (*xprt == NULL)
238 port = (*xprt)->xp_port;
239 fd = (*xprt)->xp_sock;
246 if ((*xprt = svc_tli_create(RPC_ANYFD, nc, NULL, 0, 0)) == NULL) {
250 nb = &(*xprt)->xp_ltaddr;
251 fd = (*xprt)->xp_fd;
291 SVCXPRT *xprt, struct ypreq_key *req, char *map)
332 fwd_req4.xid = svc_getxid(xprt);
333 addrp = svc_getcaller(xprt);
344 nb = svc_getrpccaller(xprt);
351 fwd_req6.xid = svc_getxid(xprt);
359 fwd_req4.xid = svc_getxid(xprt);