GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/librpcsvc/rstat.c Lines: 0 398 0.0 %
Date: 2017-11-13 Branches: 0 318 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "rstat.h"
7
8
bool_t
9
xdr_rstat_timeval(XDR *xdrs, rstat_timeval *objp)
10
{
11
12
13
	if (!xdr_u_int(xdrs, &objp->tv_sec))
14
		return (FALSE);
15
	if (!xdr_u_int(xdrs, &objp->tv_usec))
16
		return (FALSE);
17
	return (TRUE);
18
}
19
20
bool_t
21
xdr_statstime(XDR *xdrs, statstime *objp)
22
{
23
	int i;
24
25
	int32_t *buf;
26
27
	if (xdrs->x_op == XDR_ENCODE) {
28
		buf = (int32_t *)XDR_INLINE(xdrs,
29
		    (10 + CPUSTATES+DK_NDRIVE+3) * BYTES_PER_XDR_UNIT);
30
		if (buf == NULL) {
31
			if (!xdr_vector(xdrs, (char *)objp->cp_time,
32
			    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
33
				return (FALSE);
34
			if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
35
			    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
36
				return (FALSE);
37
			if (!xdr_u_int(xdrs, &objp->v_pgpgin))
38
				return (FALSE);
39
			if (!xdr_u_int(xdrs, &objp->v_pgpgout))
40
				return (FALSE);
41
			if (!xdr_u_int(xdrs, &objp->v_pswpin))
42
				return (FALSE);
43
			if (!xdr_u_int(xdrs, &objp->v_pswpout))
44
				return (FALSE);
45
			if (!xdr_u_int(xdrs, &objp->v_intr))
46
				return (FALSE);
47
			if (!xdr_int(xdrs, &objp->if_ipackets))
48
				return (FALSE);
49
			if (!xdr_int(xdrs, &objp->if_ierrors))
50
				return (FALSE);
51
			if (!xdr_int(xdrs, &objp->if_oerrors))
52
				return (FALSE);
53
			if (!xdr_int(xdrs, &objp->if_collisions))
54
				return (FALSE);
55
			if (!xdr_u_int(xdrs, &objp->v_swtch))
56
				return (FALSE);
57
			if (!xdr_vector(xdrs, (char *)objp->avenrun,
58
			    3, sizeof(int), (xdrproc_t)xdr_int))
59
				return (FALSE);
60
		} else {
61
			{
62
				int *genp;
63
64
				for (i = 0, genp = objp->cp_time;
65
				    i < CPUSTATES; i++) {
66
					IXDR_PUT_LONG(buf, *genp++);
67
				}
68
			}
69
			{
70
				int *genp;
71
72
				for (i = 0, genp = objp->dk_xfer;
73
				    i < DK_NDRIVE; i++) {
74
					IXDR_PUT_LONG(buf, *genp++);
75
				}
76
			}
77
			IXDR_PUT_U_LONG(buf, objp->v_pgpgin);
78
			IXDR_PUT_U_LONG(buf, objp->v_pgpgout);
79
			IXDR_PUT_U_LONG(buf, objp->v_pswpin);
80
			IXDR_PUT_U_LONG(buf, objp->v_pswpout);
81
			IXDR_PUT_U_LONG(buf, objp->v_intr);
82
			IXDR_PUT_LONG(buf, objp->if_ipackets);
83
			IXDR_PUT_LONG(buf, objp->if_ierrors);
84
			IXDR_PUT_LONG(buf, objp->if_oerrors);
85
			IXDR_PUT_LONG(buf, objp->if_collisions);
86
			IXDR_PUT_U_LONG(buf, objp->v_swtch);
87
			{
88
				int *genp;
89
90
				for (i = 0, genp = objp->avenrun;
91
				    i < 3; i++) {
92
					IXDR_PUT_LONG(buf, *genp++);
93
				}
94
			}
95
		}
96
		if (!xdr_rstat_timeval(xdrs, &objp->boottime))
97
			return (FALSE);
98
		if (!xdr_rstat_timeval(xdrs, &objp->curtime))
99
			return (FALSE);
100
		if (!xdr_int(xdrs, &objp->if_opackets))
101
			return (FALSE);
102
		return (TRUE);
103
	} else if (xdrs->x_op == XDR_DECODE) {
104
		buf = (int32_t *)XDR_INLINE(xdrs,
105
		    (10 + CPUSTATES+DK_NDRIVE+3) * BYTES_PER_XDR_UNIT);
106
		if (buf == NULL) {
107
			if (!xdr_vector(xdrs, (char *)objp->cp_time,
108
			    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
109
				return (FALSE);
110
			if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
111
			    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
112
				return (FALSE);
113
			if (!xdr_u_int(xdrs, &objp->v_pgpgin))
114
				return (FALSE);
115
			if (!xdr_u_int(xdrs, &objp->v_pgpgout))
116
				return (FALSE);
117
			if (!xdr_u_int(xdrs, &objp->v_pswpin))
118
				return (FALSE);
119
			if (!xdr_u_int(xdrs, &objp->v_pswpout))
120
				return (FALSE);
121
			if (!xdr_u_int(xdrs, &objp->v_intr))
122
				return (FALSE);
123
			if (!xdr_int(xdrs, &objp->if_ipackets))
124
				return (FALSE);
125
			if (!xdr_int(xdrs, &objp->if_ierrors))
126
				return (FALSE);
127
			if (!xdr_int(xdrs, &objp->if_oerrors))
128
				return (FALSE);
129
			if (!xdr_int(xdrs, &objp->if_collisions))
130
				return (FALSE);
131
			if (!xdr_u_int(xdrs, &objp->v_swtch))
132
				return (FALSE);
133
			if (!xdr_vector(xdrs, (char *)objp->avenrun,
134
			    3, sizeof(int), (xdrproc_t)xdr_int))
135
				return (FALSE);
136
		} else {
137
			{
138
				int *genp;
139
140
				for (i = 0, genp = objp->cp_time;
141
				    i < CPUSTATES; i++) {
142
					*genp++ = IXDR_GET_LONG(buf);
143
				}
144
			}
145
			{
146
				int *genp;
147
148
				for (i = 0, genp = objp->dk_xfer;
149
				    i < DK_NDRIVE; i++) {
150
					*genp++ = IXDR_GET_LONG(buf);
151
				}
152
			}
153
			objp->v_pgpgin = IXDR_GET_U_LONG(buf);
154
			objp->v_pgpgout = IXDR_GET_U_LONG(buf);
155
			objp->v_pswpin = IXDR_GET_U_LONG(buf);
156
			objp->v_pswpout = IXDR_GET_U_LONG(buf);
157
			objp->v_intr = IXDR_GET_U_LONG(buf);
158
			objp->if_ipackets = IXDR_GET_LONG(buf);
159
			objp->if_ierrors = IXDR_GET_LONG(buf);
160
			objp->if_oerrors = IXDR_GET_LONG(buf);
161
			objp->if_collisions = IXDR_GET_LONG(buf);
162
			objp->v_swtch = IXDR_GET_U_LONG(buf);
163
			{
164
				int *genp;
165
166
				for (i = 0, genp = objp->avenrun;
167
				    i < 3; i++) {
168
					*genp++ = IXDR_GET_LONG(buf);
169
				}
170
			}
171
		}
172
		if (!xdr_rstat_timeval(xdrs, &objp->boottime))
173
			return (FALSE);
174
		if (!xdr_rstat_timeval(xdrs, &objp->curtime))
175
			return (FALSE);
176
		if (!xdr_int(xdrs, &objp->if_opackets))
177
			return (FALSE);
178
		return (TRUE);
179
	}
180
181
	if (!xdr_vector(xdrs, (char *)objp->cp_time,
182
	    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
183
		return (FALSE);
184
	if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
185
	    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
186
		return (FALSE);
187
	if (!xdr_u_int(xdrs, &objp->v_pgpgin))
188
		return (FALSE);
189
	if (!xdr_u_int(xdrs, &objp->v_pgpgout))
190
		return (FALSE);
191
	if (!xdr_u_int(xdrs, &objp->v_pswpin))
192
		return (FALSE);
193
	if (!xdr_u_int(xdrs, &objp->v_pswpout))
194
		return (FALSE);
195
	if (!xdr_u_int(xdrs, &objp->v_intr))
196
		return (FALSE);
197
	if (!xdr_int(xdrs, &objp->if_ipackets))
198
		return (FALSE);
199
	if (!xdr_int(xdrs, &objp->if_ierrors))
200
		return (FALSE);
201
	if (!xdr_int(xdrs, &objp->if_oerrors))
202
		return (FALSE);
203
	if (!xdr_int(xdrs, &objp->if_collisions))
204
		return (FALSE);
205
	if (!xdr_u_int(xdrs, &objp->v_swtch))
206
		return (FALSE);
207
	if (!xdr_vector(xdrs, (char *)objp->avenrun,
208
	    3, sizeof(int), (xdrproc_t)xdr_int))
209
		return (FALSE);
210
	if (!xdr_rstat_timeval(xdrs, &objp->boottime))
211
		return (FALSE);
212
	if (!xdr_rstat_timeval(xdrs, &objp->curtime))
213
		return (FALSE);
214
	if (!xdr_int(xdrs, &objp->if_opackets))
215
		return (FALSE);
216
	return (TRUE);
217
}
218
219
bool_t
220
xdr_statsswtch(XDR *xdrs, statsswtch *objp)
221
{
222
	int i;
223
224
	int32_t *buf;
225
226
	if (xdrs->x_op == XDR_ENCODE) {
227
		buf = (int32_t *)XDR_INLINE(xdrs,
228
		    (10 + CPUSTATES+DK_NDRIVE+3) * BYTES_PER_XDR_UNIT);
229
		if (buf == NULL) {
230
			if (!xdr_vector(xdrs, (char *)objp->cp_time,
231
			    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
232
				return (FALSE);
233
			if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
234
			    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
235
				return (FALSE);
236
			if (!xdr_u_int(xdrs, &objp->v_pgpgin))
237
				return (FALSE);
238
			if (!xdr_u_int(xdrs, &objp->v_pgpgout))
239
				return (FALSE);
240
			if (!xdr_u_int(xdrs, &objp->v_pswpin))
241
				return (FALSE);
242
			if (!xdr_u_int(xdrs, &objp->v_pswpout))
243
				return (FALSE);
244
			if (!xdr_u_int(xdrs, &objp->v_intr))
245
				return (FALSE);
246
			if (!xdr_int(xdrs, &objp->if_ipackets))
247
				return (FALSE);
248
			if (!xdr_int(xdrs, &objp->if_ierrors))
249
				return (FALSE);
250
			if (!xdr_int(xdrs, &objp->if_oerrors))
251
				return (FALSE);
252
			if (!xdr_int(xdrs, &objp->if_collisions))
253
				return (FALSE);
254
			if (!xdr_u_int(xdrs, &objp->v_swtch))
255
				return (FALSE);
256
			if (!xdr_vector(xdrs, (char *)objp->avenrun,
257
			    3, sizeof(u_int), (xdrproc_t)xdr_u_int))
258
				return (FALSE);
259
		} else {
260
			{
261
				int *genp;
262
263
				for (i = 0, genp = objp->cp_time;
264
				    i < CPUSTATES; i++) {
265
					IXDR_PUT_LONG(buf, *genp++);
266
				}
267
			}
268
			{
269
				int *genp;
270
271
				for (i = 0, genp = objp->dk_xfer;
272
				    i < DK_NDRIVE; i++) {
273
					IXDR_PUT_LONG(buf, *genp++);
274
				}
275
			}
276
			IXDR_PUT_U_LONG(buf, objp->v_pgpgin);
277
			IXDR_PUT_U_LONG(buf, objp->v_pgpgout);
278
			IXDR_PUT_U_LONG(buf, objp->v_pswpin);
279
			IXDR_PUT_U_LONG(buf, objp->v_pswpout);
280
			IXDR_PUT_U_LONG(buf, objp->v_intr);
281
			IXDR_PUT_LONG(buf, objp->if_ipackets);
282
			IXDR_PUT_LONG(buf, objp->if_ierrors);
283
			IXDR_PUT_LONG(buf, objp->if_oerrors);
284
			IXDR_PUT_LONG(buf, objp->if_collisions);
285
			IXDR_PUT_U_LONG(buf, objp->v_swtch);
286
			{
287
				u_int *genp;
288
289
				for (i = 0, genp = objp->avenrun;
290
				    i < 3; i++) {
291
					IXDR_PUT_U_LONG(buf, *genp++);
292
				}
293
			}
294
		}
295
		if (!xdr_rstat_timeval(xdrs, &objp->boottime))
296
			return (FALSE);
297
		if (!xdr_int(xdrs, &objp->if_opackets))
298
			return (FALSE);
299
		return (TRUE);
300
	} else if (xdrs->x_op == XDR_DECODE) {
301
		buf = (int32_t *)XDR_INLINE(xdrs,
302
		    (10 + CPUSTATES+DK_NDRIVE+3) * BYTES_PER_XDR_UNIT);
303
		if (buf == NULL) {
304
			if (!xdr_vector(xdrs, (char *)objp->cp_time,
305
			    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
306
				return (FALSE);
307
			if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
308
			    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
309
				return (FALSE);
310
			if (!xdr_u_int(xdrs, &objp->v_pgpgin))
311
				return (FALSE);
312
			if (!xdr_u_int(xdrs, &objp->v_pgpgout))
313
				return (FALSE);
314
			if (!xdr_u_int(xdrs, &objp->v_pswpin))
315
				return (FALSE);
316
			if (!xdr_u_int(xdrs, &objp->v_pswpout))
317
				return (FALSE);
318
			if (!xdr_u_int(xdrs, &objp->v_intr))
319
				return (FALSE);
320
			if (!xdr_int(xdrs, &objp->if_ipackets))
321
				return (FALSE);
322
			if (!xdr_int(xdrs, &objp->if_ierrors))
323
				return (FALSE);
324
			if (!xdr_int(xdrs, &objp->if_oerrors))
325
				return (FALSE);
326
			if (!xdr_int(xdrs, &objp->if_collisions))
327
				return (FALSE);
328
			if (!xdr_u_int(xdrs, &objp->v_swtch))
329
				return (FALSE);
330
			if (!xdr_vector(xdrs, (char *)objp->avenrun,
331
			    3, sizeof(u_int), (xdrproc_t)xdr_u_int))
332
				return (FALSE);
333
		} else {
334
			{
335
				int *genp;
336
337
				for (i = 0, genp = objp->cp_time;
338
				    i < CPUSTATES; i++) {
339
					*genp++ = IXDR_GET_LONG(buf);
340
				}
341
			}
342
			{
343
				int *genp;
344
345
				for (i = 0, genp = objp->dk_xfer;
346
				    i < DK_NDRIVE; i++) {
347
					*genp++ = IXDR_GET_LONG(buf);
348
				}
349
			}
350
			objp->v_pgpgin = IXDR_GET_U_LONG(buf);
351
			objp->v_pgpgout = IXDR_GET_U_LONG(buf);
352
			objp->v_pswpin = IXDR_GET_U_LONG(buf);
353
			objp->v_pswpout = IXDR_GET_U_LONG(buf);
354
			objp->v_intr = IXDR_GET_U_LONG(buf);
355
			objp->if_ipackets = IXDR_GET_LONG(buf);
356
			objp->if_ierrors = IXDR_GET_LONG(buf);
357
			objp->if_oerrors = IXDR_GET_LONG(buf);
358
			objp->if_collisions = IXDR_GET_LONG(buf);
359
			objp->v_swtch = IXDR_GET_U_LONG(buf);
360
			{
361
				u_int *genp;
362
363
				for (i = 0, genp = objp->avenrun;
364
				    i < 3; i++) {
365
					*genp++ = IXDR_GET_U_LONG(buf);
366
				}
367
			}
368
		}
369
		if (!xdr_rstat_timeval(xdrs, &objp->boottime))
370
			return (FALSE);
371
		if (!xdr_int(xdrs, &objp->if_opackets))
372
			return (FALSE);
373
		return (TRUE);
374
	}
375
376
	if (!xdr_vector(xdrs, (char *)objp->cp_time,
377
	    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
378
		return (FALSE);
379
	if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
380
	    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
381
		return (FALSE);
382
	if (!xdr_u_int(xdrs, &objp->v_pgpgin))
383
		return (FALSE);
384
	if (!xdr_u_int(xdrs, &objp->v_pgpgout))
385
		return (FALSE);
386
	if (!xdr_u_int(xdrs, &objp->v_pswpin))
387
		return (FALSE);
388
	if (!xdr_u_int(xdrs, &objp->v_pswpout))
389
		return (FALSE);
390
	if (!xdr_u_int(xdrs, &objp->v_intr))
391
		return (FALSE);
392
	if (!xdr_int(xdrs, &objp->if_ipackets))
393
		return (FALSE);
394
	if (!xdr_int(xdrs, &objp->if_ierrors))
395
		return (FALSE);
396
	if (!xdr_int(xdrs, &objp->if_oerrors))
397
		return (FALSE);
398
	if (!xdr_int(xdrs, &objp->if_collisions))
399
		return (FALSE);
400
	if (!xdr_u_int(xdrs, &objp->v_swtch))
401
		return (FALSE);
402
	if (!xdr_vector(xdrs, (char *)objp->avenrun,
403
	    3, sizeof(u_int), (xdrproc_t)xdr_u_int))
404
		return (FALSE);
405
	if (!xdr_rstat_timeval(xdrs, &objp->boottime))
406
		return (FALSE);
407
	if (!xdr_int(xdrs, &objp->if_opackets))
408
		return (FALSE);
409
	return (TRUE);
410
}
411
412
bool_t
413
xdr_stats(XDR *xdrs, stats *objp)
414
{
415
	int i;
416
417
	int32_t *buf;
418
419
	if (xdrs->x_op == XDR_ENCODE) {
420
		buf = (int32_t *)XDR_INLINE(xdrs,
421
		    (10 + CPUSTATES+DK_NDRIVE) * BYTES_PER_XDR_UNIT);
422
		if (buf == NULL) {
423
			if (!xdr_vector(xdrs, (char *)objp->cp_time,
424
			    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
425
				return (FALSE);
426
			if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
427
			    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
428
				return (FALSE);
429
			if (!xdr_u_int(xdrs, &objp->v_pgpgin))
430
				return (FALSE);
431
			if (!xdr_u_int(xdrs, &objp->v_pgpgout))
432
				return (FALSE);
433
			if (!xdr_u_int(xdrs, &objp->v_pswpin))
434
				return (FALSE);
435
			if (!xdr_u_int(xdrs, &objp->v_pswpout))
436
				return (FALSE);
437
			if (!xdr_u_int(xdrs, &objp->v_intr))
438
				return (FALSE);
439
			if (!xdr_int(xdrs, &objp->if_ipackets))
440
				return (FALSE);
441
			if (!xdr_int(xdrs, &objp->if_ierrors))
442
				return (FALSE);
443
			if (!xdr_int(xdrs, &objp->if_oerrors))
444
				return (FALSE);
445
			if (!xdr_int(xdrs, &objp->if_collisions))
446
				return (FALSE);
447
			if (!xdr_int(xdrs, &objp->if_opackets))
448
				return (FALSE);
449
		} else {
450
			{
451
				int *genp;
452
453
				for (i = 0, genp = objp->cp_time;
454
				    i < CPUSTATES; i++) {
455
					IXDR_PUT_LONG(buf, *genp++);
456
				}
457
			}
458
			{
459
				int *genp;
460
461
				for (i = 0, genp = objp->dk_xfer;
462
				    i < DK_NDRIVE; i++) {
463
					IXDR_PUT_LONG(buf, *genp++);
464
				}
465
			}
466
			IXDR_PUT_U_LONG(buf, objp->v_pgpgin);
467
			IXDR_PUT_U_LONG(buf, objp->v_pgpgout);
468
			IXDR_PUT_U_LONG(buf, objp->v_pswpin);
469
			IXDR_PUT_U_LONG(buf, objp->v_pswpout);
470
			IXDR_PUT_U_LONG(buf, objp->v_intr);
471
			IXDR_PUT_LONG(buf, objp->if_ipackets);
472
			IXDR_PUT_LONG(buf, objp->if_ierrors);
473
			IXDR_PUT_LONG(buf, objp->if_oerrors);
474
			IXDR_PUT_LONG(buf, objp->if_collisions);
475
			IXDR_PUT_LONG(buf, objp->if_opackets);
476
		}
477
		return (TRUE);
478
	} else if (xdrs->x_op == XDR_DECODE) {
479
		buf = (int32_t *)XDR_INLINE(xdrs,
480
		    (10 + CPUSTATES+DK_NDRIVE) * BYTES_PER_XDR_UNIT);
481
		if (buf == NULL) {
482
			if (!xdr_vector(xdrs, (char *)objp->cp_time,
483
			    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
484
				return (FALSE);
485
			if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
486
			    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
487
				return (FALSE);
488
			if (!xdr_u_int(xdrs, &objp->v_pgpgin))
489
				return (FALSE);
490
			if (!xdr_u_int(xdrs, &objp->v_pgpgout))
491
				return (FALSE);
492
			if (!xdr_u_int(xdrs, &objp->v_pswpin))
493
				return (FALSE);
494
			if (!xdr_u_int(xdrs, &objp->v_pswpout))
495
				return (FALSE);
496
			if (!xdr_u_int(xdrs, &objp->v_intr))
497
				return (FALSE);
498
			if (!xdr_int(xdrs, &objp->if_ipackets))
499
				return (FALSE);
500
			if (!xdr_int(xdrs, &objp->if_ierrors))
501
				return (FALSE);
502
			if (!xdr_int(xdrs, &objp->if_oerrors))
503
				return (FALSE);
504
			if (!xdr_int(xdrs, &objp->if_collisions))
505
				return (FALSE);
506
			if (!xdr_int(xdrs, &objp->if_opackets))
507
				return (FALSE);
508
		} else {
509
			{
510
				int *genp;
511
512
				for (i = 0, genp = objp->cp_time;
513
				    i < CPUSTATES; i++) {
514
					*genp++ = IXDR_GET_LONG(buf);
515
				}
516
			}
517
			{
518
				int *genp;
519
520
				for (i = 0, genp = objp->dk_xfer;
521
				    i < DK_NDRIVE; i++) {
522
					*genp++ = IXDR_GET_LONG(buf);
523
				}
524
			}
525
			objp->v_pgpgin = IXDR_GET_U_LONG(buf);
526
			objp->v_pgpgout = IXDR_GET_U_LONG(buf);
527
			objp->v_pswpin = IXDR_GET_U_LONG(buf);
528
			objp->v_pswpout = IXDR_GET_U_LONG(buf);
529
			objp->v_intr = IXDR_GET_U_LONG(buf);
530
			objp->if_ipackets = IXDR_GET_LONG(buf);
531
			objp->if_ierrors = IXDR_GET_LONG(buf);
532
			objp->if_oerrors = IXDR_GET_LONG(buf);
533
			objp->if_collisions = IXDR_GET_LONG(buf);
534
			objp->if_opackets = IXDR_GET_LONG(buf);
535
		}
536
		return (TRUE);
537
	}
538
539
	if (!xdr_vector(xdrs, (char *)objp->cp_time,
540
	    CPUSTATES, sizeof(int), (xdrproc_t)xdr_int))
541
		return (FALSE);
542
	if (!xdr_vector(xdrs, (char *)objp->dk_xfer,
543
	    DK_NDRIVE, sizeof(int), (xdrproc_t)xdr_int))
544
		return (FALSE);
545
	if (!xdr_u_int(xdrs, &objp->v_pgpgin))
546
		return (FALSE);
547
	if (!xdr_u_int(xdrs, &objp->v_pgpgout))
548
		return (FALSE);
549
	if (!xdr_u_int(xdrs, &objp->v_pswpin))
550
		return (FALSE);
551
	if (!xdr_u_int(xdrs, &objp->v_pswpout))
552
		return (FALSE);
553
	if (!xdr_u_int(xdrs, &objp->v_intr))
554
		return (FALSE);
555
	if (!xdr_int(xdrs, &objp->if_ipackets))
556
		return (FALSE);
557
	if (!xdr_int(xdrs, &objp->if_ierrors))
558
		return (FALSE);
559
	if (!xdr_int(xdrs, &objp->if_oerrors))
560
		return (FALSE);
561
	if (!xdr_int(xdrs, &objp->if_collisions))
562
		return (FALSE);
563
	if (!xdr_int(xdrs, &objp->if_opackets))
564
		return (FALSE);
565
	return (TRUE);
566
}