Lines Matching refs:transp
58 void ypupdate_prog(struct svc_req *rqstp, SVCXPRT *transp);
122 SVCXPRT *transp; in main() local
124 transp = svctcp_create(RPC_INETDSOCK, 0, 0); in main()
125 if (transp == NULL) { in main()
129 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypupdate_prog, in main()
197 ypupdate_prog(struct svc_req *rqstp, SVCXPRT *transp) in ypupdate_prog() argument
211 svc_sendreply(transp, xdr_void, NULL); in ypupdate_prog()
226 svcerr_noproc(transp); in ypupdate_prog()
242 addr2netname(namebuf, transp); in ypupdate_prog()
251 svcerr_weakauth(transp); in ypupdate_prog()
255 if (!svc_getargs(transp, xdr_ypupdate_args, (caddr_t)&args)) { in ypupdate_prog()
256 svcerr_decode(transp); in ypupdate_prog()
262 if (!svc_sendreply(transp, xdr_u_int, (const caddr_t)&rslt)) { in ypupdate_prog()
265 if (!svc_freeargs(transp, xdr_ypupdate_args, (caddr_t)&args)) { in ypupdate_prog()
363 addr2netname(char *namebuf, SVCXPRT *transp) in addr2netname() argument
369 who = svc_getrpccaller(transp); in addr2netname()
372 if ((nconf = getnetconfigent(transp->xp_netid)) == NULL) in addr2netname()