Lines Matching refs:xdrs

66 xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap)  in xdr_opaque_auth()  argument
69 assert(xdrs != NULL); in xdr_opaque_auth()
72 if (xdr_enum(xdrs, &(ap->oa_flavor))) in xdr_opaque_auth()
73 return (xdr_bytes(xdrs, &ap->oa_base, in xdr_opaque_auth()
82 xdr_des_block(XDR *xdrs, des_block *blkp) in xdr_des_block() argument
85 assert(xdrs != NULL); in xdr_des_block()
88 return (xdr_opaque(xdrs, (caddr_t)(void *)blkp, sizeof(des_block))); in xdr_des_block()
97 xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar) in xdr_accepted_reply() argument
101 assert(xdrs != NULL); in xdr_accepted_reply()
107 if (! xdr_opaque_auth(xdrs, &(ar->ar_verf))) in xdr_accepted_reply()
109 if (! xdr_enum(xdrs, (enum_t *) par_stat)) in xdr_accepted_reply()
114 return ((*(ar->ar_results.proc))(xdrs, ar->ar_results.where)); in xdr_accepted_reply()
117 if (!xdr_rpcvers(xdrs, &(ar->ar_vers.low))) in xdr_accepted_reply()
119 return (xdr_rpcvers(xdrs, &(ar->ar_vers.high))); in xdr_accepted_reply()
134 xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr) in xdr_rejected_reply() argument
139 assert(xdrs != NULL); in xdr_rejected_reply()
145 if (! xdr_enum(xdrs, (enum_t *) prj_stat)) in xdr_rejected_reply()
150 if (! xdr_rpcvers(xdrs, &(rr->rj_vers.low))) in xdr_rejected_reply()
152 return (xdr_rpcvers(xdrs, &(rr->rj_vers.high))); in xdr_rejected_reply()
156 return (xdr_enum(xdrs, (enum_t *) prj_why)); in xdr_rejected_reply()
172 xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg) in xdr_replymsg() argument
177 assert(xdrs != NULL); in xdr_replymsg()
184 xdr_u_int32_t(xdrs, &(rmsg->rm_xid)) && in xdr_replymsg()
185 xdr_enum(xdrs, (enum_t *) prm_direction) && in xdr_replymsg()
187 return (xdr_union(xdrs, (enum_t *) prp_stat, in xdr_replymsg()
200 xdr_callhdr(XDR *xdrs, struct rpc_msg *cmsg) in xdr_callhdr() argument
204 assert(xdrs != NULL); in xdr_callhdr()
212 (xdrs->x_op == XDR_ENCODE) && in xdr_callhdr()
213 xdr_u_int32_t(xdrs, &(cmsg->rm_xid)) && in xdr_callhdr()
214 xdr_enum(xdrs, (enum_t *) prm_direction) && in xdr_callhdr()
215 xdr_rpcvers(xdrs, &(cmsg->rm_call.cb_rpcvers)) && in xdr_callhdr()
216 xdr_rpcprog(xdrs, &(cmsg->rm_call.cb_prog)) ) in xdr_callhdr()
217 return (xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_vers))); in xdr_callhdr()