Lines Matching refs:xdrs
44 smb_buf32_xdr(XDR *xdrs, smb_buf32_t *objp) in smb_buf32_xdr() argument
49 if (xdrs->x_op != XDR_DECODE) in smb_buf32_xdr()
52 if (xdr_bytes(xdrs, (char **)&objp->val, &size, maxsize)) { in smb_buf32_xdr()
53 if (xdrs->x_op == XDR_DECODE) in smb_buf32_xdr()
70 smb_string_xdr(XDR *xdrs, smb_string_t *objp) in smb_string_xdr() argument
72 if (!xdr_string(xdrs, &objp->buf, ~0)) in smb_string_xdr()
120 XDR xdrs; in smb_doorhdr_encode() local
123 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_doorhdr_encode()
125 if (!smb_doorhdr_xdr(&xdrs, hdr)) in smb_doorhdr_encode()
128 xdr_destroy(&xdrs); in smb_doorhdr_encode()
138 XDR xdrs; in smb_doorhdr_decode() local
142 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_doorhdr_decode()
144 if (!smb_doorhdr_xdr(&xdrs, hdr)) in smb_doorhdr_decode()
147 xdr_destroy(&xdrs); in smb_doorhdr_decode()
152 smb_doorhdr_xdr(XDR *xdrs, smb_doorhdr_t *objp) in smb_doorhdr_xdr() argument
154 if (!xdr_uint32_t(xdrs, &objp->dh_magic)) in smb_doorhdr_xdr()
156 if (!xdr_uint32_t(xdrs, &objp->dh_flags)) in smb_doorhdr_xdr()
158 if (!xdr_uint32_t(xdrs, &objp->dh_fid)) in smb_doorhdr_xdr()
160 if (!xdr_uint32_t(xdrs, &objp->dh_op)) in smb_doorhdr_xdr()
162 if (!xdr_uint32_t(xdrs, &objp->dh_txid)) in smb_doorhdr_xdr()
164 if (!xdr_uint32_t(xdrs, &objp->dh_datalen)) in smb_doorhdr_xdr()
166 if (!xdr_uint32_t(xdrs, &objp->dh_resid)) in smb_doorhdr_xdr()
168 if (!xdr_uint32_t(xdrs, &objp->dh_door_rc)) in smb_doorhdr_xdr()
170 if (!xdr_uint32_t(xdrs, &objp->dh_status)) in smb_doorhdr_xdr()
182 XDR xdrs; in smb_netuserinfo_encode() local
185 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_netuserinfo_encode()
187 if (!smb_netuserinfo_xdr(&xdrs, info)) in smb_netuserinfo_encode()
191 *nbytes = xdr_getpos(&xdrs); in smb_netuserinfo_encode()
192 xdr_destroy(&xdrs); in smb_netuserinfo_encode()
203 XDR xdrs; in smb_netuserinfo_decode() local
206 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_netuserinfo_decode()
209 if (!smb_netuserinfo_xdr(&xdrs, info)) in smb_netuserinfo_decode()
213 *nbytes = xdr_getpos(&xdrs); in smb_netuserinfo_decode()
214 xdr_destroy(&xdrs); in smb_netuserinfo_decode()
219 smb_inaddr_xdr(XDR *xdrs, smb_inaddr_t *objp) in smb_inaddr_xdr() argument
221 if (!xdr_int32_t(xdrs, &objp->a_family)) in smb_inaddr_xdr()
224 if (!xdr_uint32_t(xdrs, (in_addr_t *)&objp->a_ipv4)) in smb_inaddr_xdr()
227 if (!xdr_vector(xdrs, (char *)&objp->a_ipv6, in smb_inaddr_xdr()
238 smb_netuserinfo_xdr(XDR *xdrs, smb_netuserinfo_t *objp) in smb_netuserinfo_xdr() argument
240 if (!xdr_uint64_t(xdrs, &objp->ui_session_id)) in smb_netuserinfo_xdr()
242 if (!xdr_uint64_t(xdrs, &objp->ui_user_id)) in smb_netuserinfo_xdr()
244 if (!xdr_uint16_t(xdrs, &objp->ui_domain_len)) in smb_netuserinfo_xdr()
246 if (!xdr_string(xdrs, &objp->ui_domain, ~0)) in smb_netuserinfo_xdr()
248 if (!xdr_uint16_t(xdrs, &objp->ui_account_len)) in smb_netuserinfo_xdr()
250 if (!xdr_string(xdrs, &objp->ui_account, ~0)) in smb_netuserinfo_xdr()
252 if (!xdr_uint32_t(xdrs, &objp->ui_posix_uid)) in smb_netuserinfo_xdr()
254 if (!xdr_uint16_t(xdrs, &objp->ui_workstation_len)) in smb_netuserinfo_xdr()
256 if (!xdr_string(xdrs, &objp->ui_workstation, ~0)) in smb_netuserinfo_xdr()
258 if (!smb_inaddr_xdr(xdrs, &objp->ui_ipaddr)) in smb_netuserinfo_xdr()
260 if (!xdr_int32_t(xdrs, &objp->ui_native_os)) in smb_netuserinfo_xdr()
262 if (!xdr_int64_t(xdrs, &objp->ui_logon_time)) in smb_netuserinfo_xdr()
264 if (!xdr_uint32_t(xdrs, &objp->ui_numopens)) in smb_netuserinfo_xdr()
266 if (!xdr_uint32_t(xdrs, &objp->ui_flags)) in smb_netuserinfo_xdr()
278 XDR xdrs; in smb_netconnectinfo_encode() local
281 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_netconnectinfo_encode()
283 if (!smb_netconnectinfo_xdr(&xdrs, info)) in smb_netconnectinfo_encode()
287 *nbytes = xdr_getpos(&xdrs); in smb_netconnectinfo_encode()
288 xdr_destroy(&xdrs); in smb_netconnectinfo_encode()
299 XDR xdrs; in smb_netconnectinfo_decode() local
302 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_netconnectinfo_decode()
305 if (!smb_netconnectinfo_xdr(&xdrs, info)) in smb_netconnectinfo_decode()
309 *nbytes = xdr_getpos(&xdrs); in smb_netconnectinfo_decode()
310 xdr_destroy(&xdrs); in smb_netconnectinfo_decode()
318 smb_netconnectinfo_xdr(XDR *xdrs, smb_netconnectinfo_t *objp) in smb_netconnectinfo_xdr() argument
320 if (!xdr_uint32_t(xdrs, &objp->ci_id)) in smb_netconnectinfo_xdr()
322 if (!xdr_uint32_t(xdrs, &objp->ci_type)) in smb_netconnectinfo_xdr()
324 if (!xdr_uint32_t(xdrs, &objp->ci_numopens)) in smb_netconnectinfo_xdr()
326 if (!xdr_uint32_t(xdrs, &objp->ci_numusers)) in smb_netconnectinfo_xdr()
328 if (!xdr_uint32_t(xdrs, &objp->ci_time)) in smb_netconnectinfo_xdr()
330 if (!xdr_uint32_t(xdrs, &objp->ci_namelen)) in smb_netconnectinfo_xdr()
332 if (!xdr_uint32_t(xdrs, &objp->ci_sharelen)) in smb_netconnectinfo_xdr()
334 if (!xdr_string(xdrs, &objp->ci_username, MAXNAMELEN)) in smb_netconnectinfo_xdr()
336 if (!xdr_string(xdrs, &objp->ci_share, MAXNAMELEN)) in smb_netconnectinfo_xdr()
348 XDR xdrs; in smb_netfileinfo_encode() local
351 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_netfileinfo_encode()
353 if (!smb_netfileinfo_xdr(&xdrs, info)) in smb_netfileinfo_encode()
357 *nbytes = xdr_getpos(&xdrs); in smb_netfileinfo_encode()
358 xdr_destroy(&xdrs); in smb_netfileinfo_encode()
369 XDR xdrs; in smb_netfileinfo_decode() local
372 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_DECODE); in smb_netfileinfo_decode()
375 if (!smb_netfileinfo_xdr(&xdrs, info)) in smb_netfileinfo_decode()
379 *nbytes = xdr_getpos(&xdrs); in smb_netfileinfo_decode()
380 xdr_destroy(&xdrs); in smb_netfileinfo_decode()
388 smb_netfileinfo_xdr(XDR *xdrs, smb_netfileinfo_t *objp) in smb_netfileinfo_xdr() argument
390 if (!xdr_uint16_t(xdrs, &objp->fi_fid)) in smb_netfileinfo_xdr()
392 if (!xdr_uint32_t(xdrs, &objp->fi_uniqid)) in smb_netfileinfo_xdr()
394 if (!xdr_uint32_t(xdrs, &objp->fi_permissions)) in smb_netfileinfo_xdr()
396 if (!xdr_uint32_t(xdrs, &objp->fi_numlocks)) in smb_netfileinfo_xdr()
398 if (!xdr_uint32_t(xdrs, &objp->fi_pathlen)) in smb_netfileinfo_xdr()
400 if (!xdr_uint32_t(xdrs, &objp->fi_namelen)) in smb_netfileinfo_xdr()
402 if (!xdr_string(xdrs, &objp->fi_path, MAXPATHLEN)) in smb_netfileinfo_xdr()
404 if (!xdr_string(xdrs, &objp->fi_username, MAXNAMELEN)) in smb_netfileinfo_xdr()
410 smb_gmttoken_query_xdr(XDR *xdrs, smb_gmttoken_query_t *objp) in smb_gmttoken_query_xdr() argument
412 if (!xdr_uint32_t(xdrs, &objp->gtq_count)) { in smb_gmttoken_query_xdr()
415 if (!xdr_string(xdrs, &objp->gtq_path, ~0)) { in smb_gmttoken_query_xdr()
422 smb_gmttoken_xdr(XDR *xdrs, smb_gmttoken_t *objp) in smb_gmttoken_xdr() argument
424 if (!xdr_string(xdrs, objp, SMB_VSS_GMT_SIZE)) { in smb_gmttoken_xdr()
431 smb_gmttoken_response_xdr(XDR *xdrs, smb_gmttoken_response_t *objp) in smb_gmttoken_response_xdr() argument
433 if (!xdr_uint32_t(xdrs, &objp->gtr_count)) { in smb_gmttoken_response_xdr()
436 if (!xdr_array(xdrs, (char **)&objp->gtr_gmttokens.gtr_gmttokens_val, in smb_gmttoken_response_xdr()
445 smb_gmttoken_snapname_xdr(XDR *xdrs, smb_gmttoken_snapname_t *objp) in smb_gmttoken_snapname_xdr() argument
447 if (!xdr_string(xdrs, &objp->gts_path, MAXPATHLEN)) { in smb_gmttoken_snapname_xdr()
450 if (!xdr_string(xdrs, &objp->gts_gmttoken, SMB_VSS_GMT_SIZE)) { in smb_gmttoken_snapname_xdr()
453 if (!xdr_uint64_t(xdrs, &objp->gts_toktime)) { in smb_gmttoken_snapname_xdr()
460 smb_quota_xdr(XDR *xdrs, smb_quota_t *objp) in smb_quota_xdr() argument
462 if (!xdr_vector(xdrs, (char *)objp->q_sidstr, SMB_SID_STRSZ, in smb_quota_xdr()
465 if (!xdr_uint32_t(xdrs, &objp->q_sidtype)) in smb_quota_xdr()
467 if (!xdr_uint64_t(xdrs, &objp->q_used)) in smb_quota_xdr()
469 if (!xdr_uint64_t(xdrs, &objp->q_thresh)) in smb_quota_xdr()
471 if (!xdr_uint64_t(xdrs, &objp->q_limit)) in smb_quota_xdr()
478 smb_quota_sid_xdr(XDR *xdrs, smb_quota_sid_t *objp) in smb_quota_sid_xdr() argument
480 if (!xdr_vector(xdrs, (char *)objp->qs_sidstr, SMB_SID_STRSZ, in smb_quota_sid_xdr()
487 smb_quota_query_xdr(XDR *xdrs, smb_quota_query_t *objp) in smb_quota_query_xdr() argument
489 if (!xdr_string(xdrs, &objp->qq_root_path, ~0)) in smb_quota_query_xdr()
491 if (!xdr_uint32_t(xdrs, &objp->qq_query_op)) in smb_quota_query_xdr()
493 if (!xdr_bool(xdrs, &objp->qq_single)) in smb_quota_query_xdr()
495 if (!xdr_bool(xdrs, &objp->qq_restart)) in smb_quota_query_xdr()
497 if (!xdr_uint32_t(xdrs, &objp->qq_max_quota)) in smb_quota_query_xdr()
499 if (!smb_list_xdr(xdrs, &objp->qq_sid_list, in smb_quota_query_xdr()
508 smb_quota_response_xdr(XDR *xdrs, smb_quota_response_t *objp) in smb_quota_response_xdr() argument
510 if (!xdr_uint32_t(xdrs, &objp->qr_status)) in smb_quota_response_xdr()
512 if (!smb_list_xdr(xdrs, &objp->qr_quota_list, in smb_quota_response_xdr()
520 smb_quota_set_xdr(XDR *xdrs, smb_quota_set_t *objp) in smb_quota_set_xdr() argument
522 if (!xdr_string(xdrs, &objp->qs_root_path, ~0)) in smb_quota_set_xdr()
524 if (!smb_list_xdr(xdrs, &objp->qs_quota_list, in smb_quota_set_xdr()
538 smb_list_xdr(XDR *xdrs, list_t *list, const size_t offset, in smb_list_xdr() argument
544 switch (xdrs->x_op) { in smb_list_xdr()
551 if (!xdr_uint32_t(xdrs, &count)) in smb_list_xdr()
556 if (!elproc(xdrs, node)) in smb_list_xdr()
563 if (!xdr_uint32_t(xdrs, &count)) in smb_list_xdr()
570 if (!elproc(xdrs, node)) in smb_list_xdr()
580 (void) elproc(xdrs, node); in smb_list_xdr()
591 dfs_target_pclass_xdr(XDR *xdrs, dfs_target_pclass_t *objp) in dfs_target_pclass_xdr() argument
593 return (xdr_enum(xdrs, (enum_t *)objp)); in dfs_target_pclass_xdr()
597 dfs_target_priority_xdr(XDR *xdrs, dfs_target_priority_t *objp) in dfs_target_priority_xdr() argument
599 if (!dfs_target_pclass_xdr(xdrs, &objp->p_class)) in dfs_target_priority_xdr()
602 if (!xdr_uint16_t(xdrs, &objp->p_rank)) in dfs_target_priority_xdr()
609 dfs_target_xdr(XDR *xdrs, dfs_target_t *objp) in dfs_target_xdr() argument
611 if (!xdr_vector(xdrs, (char *)objp->t_server, DFS_SRVNAME_MAX, in dfs_target_xdr()
615 if (!xdr_vector(xdrs, (char *)objp->t_share, DFS_NAME_MAX, in dfs_target_xdr()
619 if (!xdr_uint32_t(xdrs, &objp->t_state)) in dfs_target_xdr()
622 if (!dfs_target_priority_xdr(xdrs, &objp->t_priority)) in dfs_target_xdr()
629 dfs_reftype_xdr(XDR *xdrs, dfs_reftype_t *objp) in dfs_reftype_xdr() argument
631 return (xdr_enum(xdrs, (enum_t *)objp)); in dfs_reftype_xdr()
635 dfs_info_xdr(XDR *xdrs, dfs_info_t *objp) in dfs_info_xdr() argument
637 if (!xdr_vector(xdrs, (char *)objp->i_uncpath, DFS_PATH_MAX, in dfs_info_xdr()
641 if (!xdr_vector(xdrs, (char *)objp->i_comment, DFS_COMMENT_MAX, in dfs_info_xdr()
645 if (!xdr_vector(xdrs, (char *)objp->i_guid, in dfs_info_xdr()
649 if (!xdr_uint32_t(xdrs, &objp->i_state)) in dfs_info_xdr()
652 if (!xdr_uint32_t(xdrs, &objp->i_timeout)) in dfs_info_xdr()
655 if (!xdr_uint32_t(xdrs, &objp->i_propflags)) in dfs_info_xdr()
658 if (!xdr_uint32_t(xdrs, &objp->i_type)) in dfs_info_xdr()
661 if (!xdr_array(xdrs, (char **)&objp->i_targets, in dfs_info_xdr()
670 dfs_referral_query_xdr(XDR *xdrs, dfs_referral_query_t *objp) in dfs_referral_query_xdr() argument
672 if (!dfs_reftype_xdr(xdrs, &objp->rq_type)) in dfs_referral_query_xdr()
675 if (!xdr_string(xdrs, &objp->rq_path, ~0)) in dfs_referral_query_xdr()
682 dfs_referral_response_xdr(XDR *xdrs, dfs_referral_response_t *objp) in dfs_referral_response_xdr() argument
684 if (!dfs_info_xdr(xdrs, &objp->rp_referrals)) in dfs_referral_response_xdr()
687 if (!xdr_uint32_t(xdrs, &objp->rp_status)) in dfs_referral_response_xdr()
694 smb_shr_hostaccess_query_xdr(XDR *xdrs, smb_shr_hostaccess_query_t *objp) in smb_shr_hostaccess_query_xdr() argument
696 if (!xdr_string(xdrs, &objp->shq_none, ~0)) in smb_shr_hostaccess_query_xdr()
699 if (!xdr_string(xdrs, &objp->shq_ro, ~0)) in smb_shr_hostaccess_query_xdr()
702 if (!xdr_string(xdrs, &objp->shq_rw, ~0)) in smb_shr_hostaccess_query_xdr()
705 if (!xdr_uint32_t(xdrs, &objp->shq_flag)) in smb_shr_hostaccess_query_xdr()
708 if (!smb_inaddr_xdr(xdrs, &objp->shq_ipaddr)) in smb_shr_hostaccess_query_xdr()
715 smb_shr_execinfo_xdr(XDR *xdrs, smb_shr_execinfo_t *objp) in smb_shr_execinfo_xdr() argument
717 if (!xdr_string(xdrs, &objp->e_sharename, ~0)) in smb_shr_execinfo_xdr()
720 if (!xdr_string(xdrs, &objp->e_winname, ~0)) in smb_shr_execinfo_xdr()
723 if (!xdr_string(xdrs, &objp->e_userdom, ~0)) in smb_shr_execinfo_xdr()
726 if (!smb_inaddr_xdr(xdrs, &objp->e_srv_ipaddr)) in smb_shr_execinfo_xdr()
729 if (!smb_inaddr_xdr(xdrs, &objp->e_cli_ipaddr)) in smb_shr_execinfo_xdr()
732 if (!xdr_string(xdrs, &objp->e_cli_netbiosname, ~0)) in smb_shr_execinfo_xdr()
735 if (!xdr_u_int(xdrs, &objp->e_uid)) in smb_shr_execinfo_xdr()
738 if (!xdr_int(xdrs, &objp->e_type)) in smb_shr_execinfo_xdr()