1*7f2fe78bSCy Schubert /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2*7f2fe78bSCy Schubert /*
3*7f2fe78bSCy Schubert * Please do not edit this file.
4*7f2fe78bSCy Schubert * It was generated using rpcgen.
5*7f2fe78bSCy Schubert */
6*7f2fe78bSCy Schubert
7*7f2fe78bSCy Schubert #include "iprop.h"
8*7f2fe78bSCy Schubert #ifdef __GNUC__
9*7f2fe78bSCy Schubert #pragma GCC diagnostic ignored "-Wunused-variable"
10*7f2fe78bSCy Schubert #endif
11*7f2fe78bSCy Schubert
12*7f2fe78bSCy Schubert static bool_t
xdr_int16_t(XDR * xdrs,int16_t * objp)13*7f2fe78bSCy Schubert xdr_int16_t (XDR *xdrs, int16_t *objp)
14*7f2fe78bSCy Schubert {
15*7f2fe78bSCy Schubert int32_t *buf;
16*7f2fe78bSCy Schubert
17*7f2fe78bSCy Schubert if (!xdr_short (xdrs, objp))
18*7f2fe78bSCy Schubert return FALSE;
19*7f2fe78bSCy Schubert return TRUE;
20*7f2fe78bSCy Schubert }
21*7f2fe78bSCy Schubert
22*7f2fe78bSCy Schubert static bool_t
xdr_int32_t(XDR * xdrs,int32_t * objp)23*7f2fe78bSCy Schubert xdr_int32_t (XDR *xdrs, int32_t *objp)
24*7f2fe78bSCy Schubert {
25*7f2fe78bSCy Schubert int32_t *buf;
26*7f2fe78bSCy Schubert
27*7f2fe78bSCy Schubert if (!xdr_int (xdrs, objp))
28*7f2fe78bSCy Schubert return FALSE;
29*7f2fe78bSCy Schubert return TRUE;
30*7f2fe78bSCy Schubert }
31*7f2fe78bSCy Schubert
32*7f2fe78bSCy Schubert static bool_t
xdr_uint32_t(XDR * xdrs,uint32_t * objp)33*7f2fe78bSCy Schubert xdr_uint32_t (XDR *xdrs, uint32_t *objp)
34*7f2fe78bSCy Schubert {
35*7f2fe78bSCy Schubert int32_t *buf;
36*7f2fe78bSCy Schubert
37*7f2fe78bSCy Schubert if (!xdr_u_int (xdrs, objp))
38*7f2fe78bSCy Schubert return FALSE;
39*7f2fe78bSCy Schubert return TRUE;
40*7f2fe78bSCy Schubert }
41*7f2fe78bSCy Schubert
42*7f2fe78bSCy Schubert bool_t
xdr_utf8str_t(XDR * xdrs,utf8str_t * objp)43*7f2fe78bSCy Schubert xdr_utf8str_t (XDR *xdrs, utf8str_t *objp)
44*7f2fe78bSCy Schubert {
45*7f2fe78bSCy Schubert int32_t *buf;
46*7f2fe78bSCy Schubert
47*7f2fe78bSCy Schubert if (!xdr_bytes (xdrs, (char **)&objp->utf8str_t_val, (u_int *) &objp->utf8str_t_len, ~0))
48*7f2fe78bSCy Schubert return FALSE;
49*7f2fe78bSCy Schubert return TRUE;
50*7f2fe78bSCy Schubert }
51*7f2fe78bSCy Schubert
52*7f2fe78bSCy Schubert bool_t
xdr_kdb_sno_t(XDR * xdrs,kdb_sno_t * objp)53*7f2fe78bSCy Schubert xdr_kdb_sno_t (XDR *xdrs, kdb_sno_t *objp)
54*7f2fe78bSCy Schubert {
55*7f2fe78bSCy Schubert int32_t *buf;
56*7f2fe78bSCy Schubert
57*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, objp))
58*7f2fe78bSCy Schubert return FALSE;
59*7f2fe78bSCy Schubert return TRUE;
60*7f2fe78bSCy Schubert }
61*7f2fe78bSCy Schubert
62*7f2fe78bSCy Schubert bool_t
xdr_kdbe_time_t(XDR * xdrs,kdbe_time_t * objp)63*7f2fe78bSCy Schubert xdr_kdbe_time_t (XDR *xdrs, kdbe_time_t *objp)
64*7f2fe78bSCy Schubert {
65*7f2fe78bSCy Schubert int32_t *buf;
66*7f2fe78bSCy Schubert
67*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->seconds))
68*7f2fe78bSCy Schubert return FALSE;
69*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->useconds))
70*7f2fe78bSCy Schubert return FALSE;
71*7f2fe78bSCy Schubert return TRUE;
72*7f2fe78bSCy Schubert }
73*7f2fe78bSCy Schubert
74*7f2fe78bSCy Schubert bool_t
xdr_kdbe_key_t(XDR * xdrs,kdbe_key_t * objp)75*7f2fe78bSCy Schubert xdr_kdbe_key_t (XDR *xdrs, kdbe_key_t *objp)
76*7f2fe78bSCy Schubert {
77*7f2fe78bSCy Schubert int32_t *buf;
78*7f2fe78bSCy Schubert
79*7f2fe78bSCy Schubert if (!xdr_int32_t (xdrs, &objp->k_ver))
80*7f2fe78bSCy Schubert return FALSE;
81*7f2fe78bSCy Schubert if (!xdr_int32_t (xdrs, &objp->k_kvno))
82*7f2fe78bSCy Schubert return FALSE;
83*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->k_enctype.k_enctype_val, (u_int *) &objp->k_enctype.k_enctype_len, ~0,
84*7f2fe78bSCy Schubert sizeof (int32_t), (xdrproc_t) xdr_int32_t))
85*7f2fe78bSCy Schubert return FALSE;
86*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->k_contents.k_contents_val, (u_int *) &objp->k_contents.k_contents_len, ~0,
87*7f2fe78bSCy Schubert sizeof (utf8str_t), (xdrproc_t) xdr_utf8str_t))
88*7f2fe78bSCy Schubert return FALSE;
89*7f2fe78bSCy Schubert return TRUE;
90*7f2fe78bSCy Schubert }
91*7f2fe78bSCy Schubert
92*7f2fe78bSCy Schubert bool_t
xdr_kdbe_data_t(XDR * xdrs,kdbe_data_t * objp)93*7f2fe78bSCy Schubert xdr_kdbe_data_t (XDR *xdrs, kdbe_data_t *objp)
94*7f2fe78bSCy Schubert {
95*7f2fe78bSCy Schubert int32_t *buf;
96*7f2fe78bSCy Schubert
97*7f2fe78bSCy Schubert if (!xdr_int32_t (xdrs, &objp->k_magic))
98*7f2fe78bSCy Schubert return FALSE;
99*7f2fe78bSCy Schubert if (!xdr_utf8str_t (xdrs, &objp->k_data))
100*7f2fe78bSCy Schubert return FALSE;
101*7f2fe78bSCy Schubert return TRUE;
102*7f2fe78bSCy Schubert }
103*7f2fe78bSCy Schubert
104*7f2fe78bSCy Schubert bool_t
xdr_kdbe_princ_t(XDR * xdrs,kdbe_princ_t * objp)105*7f2fe78bSCy Schubert xdr_kdbe_princ_t (XDR *xdrs, kdbe_princ_t *objp)
106*7f2fe78bSCy Schubert {
107*7f2fe78bSCy Schubert int32_t *buf;
108*7f2fe78bSCy Schubert
109*7f2fe78bSCy Schubert if (!xdr_utf8str_t (xdrs, &objp->k_realm))
110*7f2fe78bSCy Schubert return FALSE;
111*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->k_components.k_components_val, (u_int *) &objp->k_components.k_components_len, ~0,
112*7f2fe78bSCy Schubert sizeof (kdbe_data_t), (xdrproc_t) xdr_kdbe_data_t))
113*7f2fe78bSCy Schubert return FALSE;
114*7f2fe78bSCy Schubert if (!xdr_int32_t (xdrs, &objp->k_nametype))
115*7f2fe78bSCy Schubert return FALSE;
116*7f2fe78bSCy Schubert return TRUE;
117*7f2fe78bSCy Schubert }
118*7f2fe78bSCy Schubert
119*7f2fe78bSCy Schubert bool_t
xdr_kdbe_tl_t(XDR * xdrs,kdbe_tl_t * objp)120*7f2fe78bSCy Schubert xdr_kdbe_tl_t (XDR *xdrs, kdbe_tl_t *objp)
121*7f2fe78bSCy Schubert {
122*7f2fe78bSCy Schubert int32_t *buf;
123*7f2fe78bSCy Schubert
124*7f2fe78bSCy Schubert if (!xdr_int16_t (xdrs, &objp->tl_type))
125*7f2fe78bSCy Schubert return FALSE;
126*7f2fe78bSCy Schubert if (!xdr_bytes (xdrs, (char **)&objp->tl_data.tl_data_val, (u_int *) &objp->tl_data.tl_data_len, ~0))
127*7f2fe78bSCy Schubert return FALSE;
128*7f2fe78bSCy Schubert return TRUE;
129*7f2fe78bSCy Schubert }
130*7f2fe78bSCy Schubert
131*7f2fe78bSCy Schubert bool_t
xdr_kdbe_pw_hist_t(XDR * xdrs,kdbe_pw_hist_t * objp)132*7f2fe78bSCy Schubert xdr_kdbe_pw_hist_t (XDR *xdrs, kdbe_pw_hist_t *objp)
133*7f2fe78bSCy Schubert {
134*7f2fe78bSCy Schubert int32_t *buf;
135*7f2fe78bSCy Schubert
136*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdbe_pw_hist_t_val, (u_int *) &objp->kdbe_pw_hist_t_len, ~0,
137*7f2fe78bSCy Schubert sizeof (kdbe_key_t), (xdrproc_t) xdr_kdbe_key_t))
138*7f2fe78bSCy Schubert return FALSE;
139*7f2fe78bSCy Schubert return TRUE;
140*7f2fe78bSCy Schubert }
141*7f2fe78bSCy Schubert
142*7f2fe78bSCy Schubert bool_t
xdr_kdbe_attr_type_t(XDR * xdrs,kdbe_attr_type_t * objp)143*7f2fe78bSCy Schubert xdr_kdbe_attr_type_t (XDR *xdrs, kdbe_attr_type_t *objp)
144*7f2fe78bSCy Schubert {
145*7f2fe78bSCy Schubert int32_t *buf;
146*7f2fe78bSCy Schubert
147*7f2fe78bSCy Schubert if (!xdr_enum (xdrs, (enum_t *) objp))
148*7f2fe78bSCy Schubert return FALSE;
149*7f2fe78bSCy Schubert return TRUE;
150*7f2fe78bSCy Schubert }
151*7f2fe78bSCy Schubert
152*7f2fe78bSCy Schubert bool_t
xdr_kdbe_val_t(XDR * xdrs,kdbe_val_t * objp)153*7f2fe78bSCy Schubert xdr_kdbe_val_t (XDR *xdrs, kdbe_val_t *objp)
154*7f2fe78bSCy Schubert {
155*7f2fe78bSCy Schubert int32_t *buf;
156*7f2fe78bSCy Schubert
157*7f2fe78bSCy Schubert if (!xdr_kdbe_attr_type_t (xdrs, &objp->av_type))
158*7f2fe78bSCy Schubert return FALSE;
159*7f2fe78bSCy Schubert switch (objp->av_type) {
160*7f2fe78bSCy Schubert case AT_ATTRFLAGS:
161*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_attrflags))
162*7f2fe78bSCy Schubert return FALSE;
163*7f2fe78bSCy Schubert break;
164*7f2fe78bSCy Schubert case AT_MAX_LIFE:
165*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_max_life))
166*7f2fe78bSCy Schubert return FALSE;
167*7f2fe78bSCy Schubert break;
168*7f2fe78bSCy Schubert case AT_MAX_RENEW_LIFE:
169*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_max_renew_life))
170*7f2fe78bSCy Schubert return FALSE;
171*7f2fe78bSCy Schubert break;
172*7f2fe78bSCy Schubert case AT_EXP:
173*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_exp))
174*7f2fe78bSCy Schubert return FALSE;
175*7f2fe78bSCy Schubert break;
176*7f2fe78bSCy Schubert case AT_PW_EXP:
177*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_pw_exp))
178*7f2fe78bSCy Schubert return FALSE;
179*7f2fe78bSCy Schubert break;
180*7f2fe78bSCy Schubert case AT_LAST_SUCCESS:
181*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_last_success))
182*7f2fe78bSCy Schubert return FALSE;
183*7f2fe78bSCy Schubert break;
184*7f2fe78bSCy Schubert case AT_LAST_FAILED:
185*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_last_failed))
186*7f2fe78bSCy Schubert return FALSE;
187*7f2fe78bSCy Schubert break;
188*7f2fe78bSCy Schubert case AT_FAIL_AUTH_COUNT:
189*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_fail_auth_count))
190*7f2fe78bSCy Schubert return FALSE;
191*7f2fe78bSCy Schubert break;
192*7f2fe78bSCy Schubert case AT_PRINC:
193*7f2fe78bSCy Schubert if (!xdr_kdbe_princ_t (xdrs, &objp->kdbe_val_t_u.av_princ))
194*7f2fe78bSCy Schubert return FALSE;
195*7f2fe78bSCy Schubert break;
196*7f2fe78bSCy Schubert case AT_KEYDATA:
197*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdbe_val_t_u.av_keydata.av_keydata_val, (u_int *) &objp->kdbe_val_t_u.av_keydata.av_keydata_len, ~0,
198*7f2fe78bSCy Schubert sizeof (kdbe_key_t), (xdrproc_t) xdr_kdbe_key_t))
199*7f2fe78bSCy Schubert return FALSE;
200*7f2fe78bSCy Schubert break;
201*7f2fe78bSCy Schubert case AT_TL_DATA:
202*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdbe_val_t_u.av_tldata.av_tldata_val, (u_int *) &objp->kdbe_val_t_u.av_tldata.av_tldata_len, ~0,
203*7f2fe78bSCy Schubert sizeof (kdbe_tl_t), (xdrproc_t) xdr_kdbe_tl_t))
204*7f2fe78bSCy Schubert return FALSE;
205*7f2fe78bSCy Schubert break;
206*7f2fe78bSCy Schubert case AT_LEN:
207*7f2fe78bSCy Schubert if (!xdr_int16_t (xdrs, &objp->kdbe_val_t_u.av_len))
208*7f2fe78bSCy Schubert return FALSE;
209*7f2fe78bSCy Schubert break;
210*7f2fe78bSCy Schubert case AT_PW_LAST_CHANGE:
211*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_pw_last_change))
212*7f2fe78bSCy Schubert return FALSE;
213*7f2fe78bSCy Schubert break;
214*7f2fe78bSCy Schubert case AT_MOD_PRINC:
215*7f2fe78bSCy Schubert if (!xdr_kdbe_princ_t (xdrs, &objp->kdbe_val_t_u.av_mod_princ))
216*7f2fe78bSCy Schubert return FALSE;
217*7f2fe78bSCy Schubert break;
218*7f2fe78bSCy Schubert case AT_MOD_TIME:
219*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_mod_time))
220*7f2fe78bSCy Schubert return FALSE;
221*7f2fe78bSCy Schubert break;
222*7f2fe78bSCy Schubert case AT_MOD_WHERE:
223*7f2fe78bSCy Schubert if (!xdr_utf8str_t (xdrs, &objp->kdbe_val_t_u.av_mod_where))
224*7f2fe78bSCy Schubert return FALSE;
225*7f2fe78bSCy Schubert break;
226*7f2fe78bSCy Schubert case AT_PW_POLICY:
227*7f2fe78bSCy Schubert if (!xdr_utf8str_t (xdrs, &objp->kdbe_val_t_u.av_pw_policy))
228*7f2fe78bSCy Schubert return FALSE;
229*7f2fe78bSCy Schubert break;
230*7f2fe78bSCy Schubert case AT_PW_POLICY_SWITCH:
231*7f2fe78bSCy Schubert if (!xdr_bool (xdrs, &objp->kdbe_val_t_u.av_pw_policy_switch))
232*7f2fe78bSCy Schubert return FALSE;
233*7f2fe78bSCy Schubert break;
234*7f2fe78bSCy Schubert case AT_PW_HIST_KVNO:
235*7f2fe78bSCy Schubert if (!xdr_uint32_t (xdrs, &objp->kdbe_val_t_u.av_pw_hist_kvno))
236*7f2fe78bSCy Schubert return FALSE;
237*7f2fe78bSCy Schubert break;
238*7f2fe78bSCy Schubert case AT_PW_HIST:
239*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdbe_val_t_u.av_pw_hist.av_pw_hist_val, (u_int *) &objp->kdbe_val_t_u.av_pw_hist.av_pw_hist_len, ~0,
240*7f2fe78bSCy Schubert sizeof (kdbe_pw_hist_t), (xdrproc_t) xdr_kdbe_pw_hist_t))
241*7f2fe78bSCy Schubert return FALSE;
242*7f2fe78bSCy Schubert break;
243*7f2fe78bSCy Schubert default:
244*7f2fe78bSCy Schubert if (!xdr_bytes (xdrs, (char **)&objp->kdbe_val_t_u.av_extension.av_extension_val, (u_int *) &objp->kdbe_val_t_u.av_extension.av_extension_len, ~0))
245*7f2fe78bSCy Schubert return FALSE;
246*7f2fe78bSCy Schubert break;
247*7f2fe78bSCy Schubert }
248*7f2fe78bSCy Schubert return TRUE;
249*7f2fe78bSCy Schubert }
250*7f2fe78bSCy Schubert
251*7f2fe78bSCy Schubert bool_t
xdr_kdbe_t(XDR * xdrs,kdbe_t * objp)252*7f2fe78bSCy Schubert xdr_kdbe_t (XDR *xdrs, kdbe_t *objp)
253*7f2fe78bSCy Schubert {
254*7f2fe78bSCy Schubert int32_t *buf;
255*7f2fe78bSCy Schubert
256*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdbe_t_val, (u_int *) &objp->kdbe_t_len, ~0,
257*7f2fe78bSCy Schubert sizeof (kdbe_val_t), (xdrproc_t) xdr_kdbe_val_t))
258*7f2fe78bSCy Schubert return FALSE;
259*7f2fe78bSCy Schubert return TRUE;
260*7f2fe78bSCy Schubert }
261*7f2fe78bSCy Schubert
262*7f2fe78bSCy Schubert bool_t
xdr_kdb_incr_update_t(XDR * xdrs,kdb_incr_update_t * objp)263*7f2fe78bSCy Schubert xdr_kdb_incr_update_t (XDR *xdrs, kdb_incr_update_t *objp)
264*7f2fe78bSCy Schubert {
265*7f2fe78bSCy Schubert int32_t *buf;
266*7f2fe78bSCy Schubert
267*7f2fe78bSCy Schubert if (!xdr_utf8str_t (xdrs, &objp->kdb_princ_name))
268*7f2fe78bSCy Schubert return FALSE;
269*7f2fe78bSCy Schubert if (!xdr_kdb_sno_t (xdrs, &objp->kdb_entry_sno))
270*7f2fe78bSCy Schubert return FALSE;
271*7f2fe78bSCy Schubert if (!xdr_kdbe_time_t (xdrs, &objp->kdb_time))
272*7f2fe78bSCy Schubert return FALSE;
273*7f2fe78bSCy Schubert if (!xdr_kdbe_t (xdrs, &objp->kdb_update))
274*7f2fe78bSCy Schubert return FALSE;
275*7f2fe78bSCy Schubert if (!xdr_bool (xdrs, &objp->kdb_deleted))
276*7f2fe78bSCy Schubert return FALSE;
277*7f2fe78bSCy Schubert if (!xdr_bool (xdrs, &objp->kdb_commit))
278*7f2fe78bSCy Schubert return FALSE;
279*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdb_kdcs_seen_by.kdb_kdcs_seen_by_val, (u_int *) &objp->kdb_kdcs_seen_by.kdb_kdcs_seen_by_len, ~0,
280*7f2fe78bSCy Schubert sizeof (utf8str_t), (xdrproc_t) xdr_utf8str_t))
281*7f2fe78bSCy Schubert return FALSE;
282*7f2fe78bSCy Schubert if (!xdr_bytes (xdrs, (char **)&objp->kdb_futures.kdb_futures_val, (u_int *) &objp->kdb_futures.kdb_futures_len, ~0))
283*7f2fe78bSCy Schubert return FALSE;
284*7f2fe78bSCy Schubert return TRUE;
285*7f2fe78bSCy Schubert }
286*7f2fe78bSCy Schubert
287*7f2fe78bSCy Schubert bool_t
xdr_kdb_ulog_t(XDR * xdrs,kdb_ulog_t * objp)288*7f2fe78bSCy Schubert xdr_kdb_ulog_t (XDR *xdrs, kdb_ulog_t *objp)
289*7f2fe78bSCy Schubert {
290*7f2fe78bSCy Schubert int32_t *buf;
291*7f2fe78bSCy Schubert
292*7f2fe78bSCy Schubert if (!xdr_array (xdrs, (char **)&objp->kdb_ulog_t_val, (u_int *) &objp->kdb_ulog_t_len, ~0,
293*7f2fe78bSCy Schubert sizeof (kdb_incr_update_t), (xdrproc_t) xdr_kdb_incr_update_t))
294*7f2fe78bSCy Schubert return FALSE;
295*7f2fe78bSCy Schubert return TRUE;
296*7f2fe78bSCy Schubert }
297*7f2fe78bSCy Schubert
298*7f2fe78bSCy Schubert bool_t
xdr_update_status_t(XDR * xdrs,update_status_t * objp)299*7f2fe78bSCy Schubert xdr_update_status_t (XDR *xdrs, update_status_t *objp)
300*7f2fe78bSCy Schubert {
301*7f2fe78bSCy Schubert int32_t *buf;
302*7f2fe78bSCy Schubert
303*7f2fe78bSCy Schubert if (!xdr_enum (xdrs, (enum_t *) objp))
304*7f2fe78bSCy Schubert return FALSE;
305*7f2fe78bSCy Schubert return TRUE;
306*7f2fe78bSCy Schubert }
307*7f2fe78bSCy Schubert
308*7f2fe78bSCy Schubert bool_t
xdr_kdb_last_t(XDR * xdrs,kdb_last_t * objp)309*7f2fe78bSCy Schubert xdr_kdb_last_t (XDR *xdrs, kdb_last_t *objp)
310*7f2fe78bSCy Schubert {
311*7f2fe78bSCy Schubert int32_t *buf;
312*7f2fe78bSCy Schubert
313*7f2fe78bSCy Schubert if (!xdr_kdb_sno_t (xdrs, &objp->last_sno))
314*7f2fe78bSCy Schubert return FALSE;
315*7f2fe78bSCy Schubert if (!xdr_kdbe_time_t (xdrs, &objp->last_time))
316*7f2fe78bSCy Schubert return FALSE;
317*7f2fe78bSCy Schubert return TRUE;
318*7f2fe78bSCy Schubert }
319*7f2fe78bSCy Schubert
320*7f2fe78bSCy Schubert bool_t
xdr_kdb_incr_result_t(XDR * xdrs,kdb_incr_result_t * objp)321*7f2fe78bSCy Schubert xdr_kdb_incr_result_t (XDR *xdrs, kdb_incr_result_t *objp)
322*7f2fe78bSCy Schubert {
323*7f2fe78bSCy Schubert int32_t *buf;
324*7f2fe78bSCy Schubert
325*7f2fe78bSCy Schubert if (!xdr_kdb_last_t (xdrs, &objp->lastentry))
326*7f2fe78bSCy Schubert return FALSE;
327*7f2fe78bSCy Schubert if (!xdr_kdb_ulog_t (xdrs, &objp->updates))
328*7f2fe78bSCy Schubert return FALSE;
329*7f2fe78bSCy Schubert if (!xdr_update_status_t (xdrs, &objp->ret))
330*7f2fe78bSCy Schubert return FALSE;
331*7f2fe78bSCy Schubert return TRUE;
332*7f2fe78bSCy Schubert }
333*7f2fe78bSCy Schubert
334*7f2fe78bSCy Schubert bool_t
xdr_kdb_fullresync_result_t(XDR * xdrs,kdb_fullresync_result_t * objp)335*7f2fe78bSCy Schubert xdr_kdb_fullresync_result_t (XDR *xdrs, kdb_fullresync_result_t *objp)
336*7f2fe78bSCy Schubert {
337*7f2fe78bSCy Schubert int32_t *buf;
338*7f2fe78bSCy Schubert
339*7f2fe78bSCy Schubert if (!xdr_kdb_last_t (xdrs, &objp->lastentry))
340*7f2fe78bSCy Schubert return FALSE;
341*7f2fe78bSCy Schubert if (!xdr_update_status_t (xdrs, &objp->ret))
342*7f2fe78bSCy Schubert return FALSE;
343*7f2fe78bSCy Schubert return TRUE;
344*7f2fe78bSCy Schubert }
345