Lines Matching refs:xdrs

44 smb_privset_helper_xdr(XDR *xdrs, char **privs)  in smb_privset_helper_xdr()  argument
51 if (xdrs->x_op == XDR_DECODE) { in smb_privset_helper_xdr()
52 pos = xdr_getpos(xdrs); in smb_privset_helper_xdr()
54 if (!xdr_bool(xdrs, &rc)) in smb_privset_helper_xdr()
57 if (!xdr_uint32_t(xdrs, &cnt)) in smb_privset_helper_xdr()
60 rc = xdr_setpos(xdrs, pos); in smb_privset_helper_xdr()
76 if (!xdr_pointer(xdrs, privs, len, (xdrproc_t)smb_privset_xdr)) in smb_privset_helper_xdr()
83 smb_id_xdr(XDR *xdrs, smb_id_t *objp) in smb_id_xdr() argument
87 if ((xdrs->x_op == XDR_ENCODE) || (xdrs->x_op == XDR_FREE)) in smb_id_xdr()
90 if (!xdr_uint32_t(xdrs, &objp->i_attrs)) in smb_id_xdr()
93 if (!xdr_uint8_t(xdrs, &len)) in smb_id_xdr()
96 if (!xdr_pointer(xdrs, (char **)&objp->i_sid, len, in smb_id_xdr()
100 if (!xdr_uint32_t(xdrs, (uint32_t *)&objp->i_id)) in smb_id_xdr()
107 smb_ids_xdr(XDR *xdrs, smb_ids_t *objp) in smb_ids_xdr() argument
109 if (!xdr_array(xdrs, (char **)&objp->i_ids, (uint32_t *)&objp->i_cnt, in smb_ids_xdr()
117 smb_posix_grps_xdr(XDR *xdrs, smb_posix_grps_t *objp) in smb_posix_grps_xdr() argument
119 if (!xdr_uint32_t(xdrs, &objp->pg_ngrps)) in smb_posix_grps_xdr()
121 if (!xdr_vector(xdrs, (char *)objp->pg_grps, objp->pg_ngrps, in smb_posix_grps_xdr()
128 smb_posix_grps_helper_xdr(XDR *xdrs, char **identity) in smb_posix_grps_helper_xdr() argument
134 if (xdrs->x_op == XDR_DECODE) { in smb_posix_grps_helper_xdr()
135 pos = xdr_getpos(xdrs); in smb_posix_grps_helper_xdr()
137 if (!xdr_bool(xdrs, &rc)) in smb_posix_grps_helper_xdr()
140 if (!xdr_uint32_t(xdrs, &cnt)) in smb_posix_grps_helper_xdr()
143 rc = xdr_setpos(xdrs, pos); in smb_posix_grps_helper_xdr()
154 if (!xdr_pointer(xdrs, identity, len, (xdrproc_t)smb_posix_grps_xdr)) in smb_posix_grps_helper_xdr()
160 smb_logon_xdr(XDR *xdrs, smb_logon_t *objp) in smb_logon_xdr() argument
162 if (!xdr_uint16_t(xdrs, &objp->lg_level)) in smb_logon_xdr()
164 if (!xdr_string(xdrs, &objp->lg_username, ~0)) in smb_logon_xdr()
166 if (!xdr_string(xdrs, &objp->lg_domain, ~0)) in smb_logon_xdr()
168 if (!xdr_string(xdrs, &objp->lg_e_username, ~0)) in smb_logon_xdr()
170 if (!xdr_string(xdrs, &objp->lg_e_domain, ~0)) in smb_logon_xdr()
172 if (!xdr_string(xdrs, &objp->lg_workstation, ~0)) in smb_logon_xdr()
174 if (!smb_inaddr_xdr(xdrs, &objp->lg_clnt_ipaddr)) in smb_logon_xdr()
176 if (!smb_inaddr_xdr(xdrs, &objp->lg_local_ipaddr)) in smb_logon_xdr()
178 if (!xdr_uint16_t(xdrs, &objp->lg_local_port)) in smb_logon_xdr()
180 if (!smb_buf32_xdr(xdrs, &objp->lg_challenge_key)) in smb_logon_xdr()
182 if (!smb_buf32_xdr(xdrs, &objp->lg_nt_password)) in smb_logon_xdr()
184 if (!smb_buf32_xdr(xdrs, &objp->lg_lm_password)) in smb_logon_xdr()
186 if (!xdr_uint32_t(xdrs, &objp->lg_ntlm_flags)) in smb_logon_xdr()
188 if (!xdr_int(xdrs, &objp->lg_native_os)) in smb_logon_xdr()
190 if (!xdr_int(xdrs, &objp->lg_native_lm)) in smb_logon_xdr()
192 if (!xdr_uint32_t(xdrs, &objp->lg_flags)) in smb_logon_xdr()
194 if (!xdr_uint32_t(xdrs, &objp->lg_logon_id)) in smb_logon_xdr()
196 if (!xdr_uint32_t(xdrs, &objp->lg_domain_type)) in smb_logon_xdr()
198 if (!xdr_uint32_t(xdrs, &objp->lg_secmode)) in smb_logon_xdr()
200 if (!xdr_uint32_t(xdrs, &objp->lg_status)) in smb_logon_xdr()
206 smb_sid_xdr(XDR *xdrs, smb_sid_t *objp) in smb_sid_xdr() argument
208 if (!xdr_uint8_t(xdrs, &objp->sid_revision)) in smb_sid_xdr()
210 if (!xdr_uint8_t(xdrs, &objp->sid_subauthcnt)) in smb_sid_xdr()
212 if (!xdr_vector(xdrs, (char *)objp->sid_authority, NT_SID_AUTH_MAX, in smb_sid_xdr()
215 if (!xdr_vector(xdrs, (char *)objp->sid_subauth, objp->sid_subauthcnt, in smb_sid_xdr()
222 smb_luid_xdr(XDR *xdrs, smb_luid_t *objp) in smb_luid_xdr() argument
224 if (!xdr_uint32_t(xdrs, &objp->lo_part)) in smb_luid_xdr()
226 if (!xdr_uint32_t(xdrs, &objp->hi_part)) in smb_luid_xdr()
232 smb_luid_attrs_xdr(XDR *xdrs, smb_luid_attrs_t *objp) in smb_luid_attrs_xdr() argument
234 if (!smb_luid_xdr(xdrs, &objp->luid)) in smb_luid_attrs_xdr()
236 if (!xdr_uint32_t(xdrs, &objp->attrs)) in smb_luid_attrs_xdr()
242 smb_privset_xdr(XDR *xdrs, smb_privset_t *objp) in smb_privset_xdr() argument
244 if (!xdr_uint32_t(xdrs, &objp->priv_cnt)) in smb_privset_xdr()
246 if (!xdr_uint32_t(xdrs, &objp->control)) in smb_privset_xdr()
248 if (!xdr_vector(xdrs, (char *)objp->priv, objp->priv_cnt, in smb_privset_xdr()
256 smb_token_xdr(XDR *xdrs, smb_token_t *objp) in smb_token_xdr() argument
258 if (!smb_id_xdr(xdrs, &objp->tkn_user)) in smb_token_xdr()
260 if (!smb_id_xdr(xdrs, &objp->tkn_owner)) in smb_token_xdr()
262 if (!smb_id_xdr(xdrs, &objp->tkn_primary_grp)) in smb_token_xdr()
264 if (!smb_ids_xdr(xdrs, &objp->tkn_win_grps)) in smb_token_xdr()
266 if (!smb_privset_helper_xdr(xdrs, (char **)&objp->tkn_privileges)) in smb_token_xdr()
268 if (!xdr_string(xdrs, &objp->tkn_account_name, ~0)) in smb_token_xdr()
270 if (!xdr_string(xdrs, &objp->tkn_domain_name, ~0)) in smb_token_xdr()
272 if (!xdr_uint32_t(xdrs, &objp->tkn_flags)) in smb_token_xdr()
274 if (!xdr_uint32_t(xdrs, &objp->tkn_audit_sid)) in smb_token_xdr()
276 if (!smb_buf32_xdr(xdrs, &objp->tkn_ssnkey)) in smb_token_xdr()
278 if (!smb_posix_grps_helper_xdr(xdrs, (char **)&objp->tkn_posix_grps)) in smb_token_xdr()