2 * Please do not edit this file.
3 * It was generated using rpcgen.
7 #ifndef NDMOS_OPTION_NO_NDMP3
8 #define ndmp3_u_quad unsigned long long
9 extern bool_t xdr_ndmp3_u_quad();
12 xdr__ndmp3_u_quad (XDR *xdrs, _ndmp3_u_quad *objp)
14 register int32_t *buf;
16 if (!xdr_u_long (xdrs, &objp->high))
18 if (!xdr_u_long (xdrs, &objp->low))
24 xdr_ndmp3_pval (XDR *xdrs, ndmp3_pval *objp)
26 register int32_t *buf;
28 if (!xdr_string (xdrs, &objp->name, ~0))
30 if (!xdr_string (xdrs, &objp->value, ~0))
36 xdr_ndmp3_error (XDR *xdrs, ndmp3_error *objp)
38 register int32_t *buf;
40 if (!xdr_enum (xdrs, (enum_t *) objp))
46 xdr_ndmp3_header_message_type (XDR *xdrs, ndmp3_header_message_type *objp)
48 register int32_t *buf;
50 if (!xdr_enum (xdrs, (enum_t *) objp))
56 xdr_ndmp3_message (XDR *xdrs, ndmp3_message *objp)
58 register int32_t *buf;
60 if (!xdr_enum (xdrs, (enum_t *) objp))
66 xdr_ndmp3_header (XDR *xdrs, ndmp3_header *objp)
68 register int32_t *buf;
70 if (!xdr_u_long (xdrs, &objp->sequence))
72 if (!xdr_u_long (xdrs, &objp->time_stamp))
74 if (!xdr_ndmp3_header_message_type (xdrs, &objp->message_type))
76 if (!xdr_ndmp3_message (xdrs, &objp->message))
78 if (!xdr_u_long (xdrs, &objp->reply_sequence))
80 if (!xdr_ndmp3_error (xdrs, &objp->error))
86 xdr_ndmp3_connect_open_request (XDR *xdrs, ndmp3_connect_open_request *objp)
88 register int32_t *buf;
90 if (!xdr_u_short (xdrs, &objp->protocol_version))
96 xdr_ndmp3_connect_open_reply (XDR *xdrs, ndmp3_connect_open_reply *objp)
98 register int32_t *buf;
100 if (!xdr_ndmp3_error (xdrs, &objp->error))
106 xdr_ndmp3_auth_type (XDR *xdrs, ndmp3_auth_type *objp)
108 register int32_t *buf;
110 if (!xdr_enum (xdrs, (enum_t *) objp))
116 xdr_ndmp3_auth_text (XDR *xdrs, ndmp3_auth_text *objp)
118 register int32_t *buf;
120 if (!xdr_string (xdrs, &objp->auth_id, ~0))
122 if (!xdr_string (xdrs, &objp->auth_password, ~0))
128 xdr_ndmp3_auth_md5 (XDR *xdrs, ndmp3_auth_md5 *objp)
130 register int32_t *buf;
133 if (!xdr_string (xdrs, &objp->auth_id, ~0))
135 if (!xdr_opaque (xdrs, objp->auth_digest, 16))
141 xdr_ndmp3_auth_data (XDR *xdrs, ndmp3_auth_data *objp)
143 register int32_t *buf;
145 if (!xdr_ndmp3_auth_type (xdrs, &objp->auth_type))
147 switch (objp->auth_type) {
148 case NDMP3_AUTH_NONE:
150 case NDMP3_AUTH_TEXT:
151 if (!xdr_ndmp3_auth_text (xdrs, &objp->ndmp3_auth_data_u.auth_text))
155 if (!xdr_ndmp3_auth_md5 (xdrs, &objp->ndmp3_auth_data_u.auth_md5))
165 xdr_ndmp3_connect_client_auth_request (XDR *xdrs, ndmp3_connect_client_auth_request *objp)
167 register int32_t *buf;
169 if (!xdr_ndmp3_auth_data (xdrs, &objp->auth_data))
175 xdr_ndmp3_connect_client_auth_reply (XDR *xdrs, ndmp3_connect_client_auth_reply *objp)
177 register int32_t *buf;
179 if (!xdr_ndmp3_error (xdrs, &objp->error))
185 xdr_ndmp3_auth_attr (XDR *xdrs, ndmp3_auth_attr *objp)
187 register int32_t *buf;
189 if (!xdr_ndmp3_auth_type (xdrs, &objp->auth_type))
191 switch (objp->auth_type) {
192 case NDMP3_AUTH_NONE:
194 case NDMP3_AUTH_TEXT:
197 if (!xdr_opaque (xdrs, objp->ndmp3_auth_attr_u.challenge, 64))
207 xdr_ndmp3_connect_server_auth_request (XDR *xdrs, ndmp3_connect_server_auth_request *objp)
209 register int32_t *buf;
211 if (!xdr_ndmp3_auth_attr (xdrs, &objp->client_attr))
217 xdr_ndmp3_connect_server_auth_reply (XDR *xdrs, ndmp3_connect_server_auth_reply *objp)
219 register int32_t *buf;
221 if (!xdr_ndmp3_error (xdrs, &objp->error))
223 if (!xdr_ndmp3_auth_data (xdrs, &objp->server_result))
229 xdr_ndmp3_config_get_host_info_reply (XDR *xdrs, ndmp3_config_get_host_info_reply *objp)
231 register int32_t *buf;
233 if (!xdr_ndmp3_error (xdrs, &objp->error))
235 if (!xdr_string (xdrs, &objp->hostname, ~0))
237 if (!xdr_string (xdrs, &objp->os_type, ~0))
239 if (!xdr_string (xdrs, &objp->os_vers, ~0))
241 if (!xdr_string (xdrs, &objp->hostid, ~0))
247 xdr_ndmp3_addr_type (XDR *xdrs, ndmp3_addr_type *objp)
249 register int32_t *buf;
251 if (!xdr_enum (xdrs, (enum_t *) objp))
257 xdr_ndmp3_config_get_connection_type_reply (XDR *xdrs, ndmp3_config_get_connection_type_reply *objp)
259 register int32_t *buf;
261 if (!xdr_ndmp3_error (xdrs, &objp->error))
263 if (!xdr_array (xdrs, (char **)&objp->addr_types.addr_types_val, (u_int *) &objp->addr_types.addr_types_len, ~0,
264 sizeof (ndmp3_addr_type), (xdrproc_t) xdr_ndmp3_addr_type))
270 xdr_ndmp3_config_get_auth_attr_request (XDR *xdrs, ndmp3_config_get_auth_attr_request *objp)
272 register int32_t *buf;
274 if (!xdr_ndmp3_auth_type (xdrs, &objp->auth_type))
280 xdr_ndmp3_config_get_auth_attr_reply (XDR *xdrs, ndmp3_config_get_auth_attr_reply *objp)
282 register int32_t *buf;
284 if (!xdr_ndmp3_error (xdrs, &objp->error))
286 if (!xdr_ndmp3_auth_attr (xdrs, &objp->server_attr))
292 xdr_ndmp3_config_get_server_info_reply (XDR *xdrs, ndmp3_config_get_server_info_reply *objp)
294 register int32_t *buf;
296 if (!xdr_ndmp3_error (xdrs, &objp->error))
298 if (!xdr_string (xdrs, &objp->vendor_name, ~0))
300 if (!xdr_string (xdrs, &objp->product_name, ~0))
302 if (!xdr_string (xdrs, &objp->revision_number, ~0))
304 if (!xdr_array (xdrs, (char **)&objp->auth_type.auth_type_val, (u_int *) &objp->auth_type.auth_type_len, ~0,
305 sizeof (ndmp3_auth_type), (xdrproc_t) xdr_ndmp3_auth_type))
311 xdr_ndmp3_butype_info (XDR *xdrs, ndmp3_butype_info *objp)
313 register int32_t *buf;
315 if (!xdr_string (xdrs, &objp->butype_name, ~0))
317 if (!xdr_array (xdrs, (char **)&objp->default_env.default_env_val, (u_int *) &objp->default_env.default_env_len, ~0,
318 sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval))
320 if (!xdr_u_long (xdrs, &objp->attrs))
326 xdr_ndmp3_config_get_butype_info_reply (XDR *xdrs, ndmp3_config_get_butype_info_reply *objp)
328 register int32_t *buf;
330 if (!xdr_ndmp3_error (xdrs, &objp->error))
332 if (!xdr_array (xdrs, (char **)&objp->butype_info.butype_info_val, (u_int *) &objp->butype_info.butype_info_len, ~0,
333 sizeof (ndmp3_butype_info), (xdrproc_t) xdr_ndmp3_butype_info))
339 xdr_ndmp3_fs_info (XDR *xdrs, ndmp3_fs_info *objp)
341 register int32_t *buf;
343 if (!xdr_u_long (xdrs, &objp->invalid))
345 if (!xdr_string (xdrs, &objp->fs_type, ~0))
347 if (!xdr_string (xdrs, &objp->fs_logical_device, ~0))
349 if (!xdr_string (xdrs, &objp->fs_physical_device, ~0))
351 if (!xdr_ndmp3_u_quad (xdrs, &objp->total_size))
353 if (!xdr_ndmp3_u_quad (xdrs, &objp->used_size))
355 if (!xdr_ndmp3_u_quad (xdrs, &objp->avail_size))
357 if (!xdr_ndmp3_u_quad (xdrs, &objp->total_inodes))
359 if (!xdr_ndmp3_u_quad (xdrs, &objp->used_inodes))
361 if (!xdr_array (xdrs, (char **)&objp->fs_env.fs_env_val, (u_int *) &objp->fs_env.fs_env_len, ~0,
362 sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval))
364 if (!xdr_string (xdrs, &objp->fs_status, ~0))
370 xdr_ndmp3_config_get_fs_info_reply (XDR *xdrs, ndmp3_config_get_fs_info_reply *objp)
372 register int32_t *buf;
374 if (!xdr_ndmp3_error (xdrs, &objp->error))
376 if (!xdr_array (xdrs, (char **)&objp->fs_info.fs_info_val, (u_int *) &objp->fs_info.fs_info_len, ~0,
377 sizeof (ndmp3_fs_info), (xdrproc_t) xdr_ndmp3_fs_info))
383 xdr_ndmp3_device_capability (XDR *xdrs, ndmp3_device_capability *objp)
385 register int32_t *buf;
387 if (!xdr_string (xdrs, &objp->device, ~0))
389 if (!xdr_u_long (xdrs, &objp->attr))
391 if (!xdr_array (xdrs, (char **)&objp->capability.capability_val, (u_int *) &objp->capability.capability_len, ~0,
392 sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval))
398 xdr_ndmp3_device_info (XDR *xdrs, ndmp3_device_info *objp)
400 register int32_t *buf;
402 if (!xdr_string (xdrs, &objp->model, ~0))
404 if (!xdr_array (xdrs, (char **)&objp->caplist.caplist_val, (u_int *) &objp->caplist.caplist_len, ~0,
405 sizeof (ndmp3_device_capability), (xdrproc_t) xdr_ndmp3_device_capability))
411 xdr_ndmp3_config_get_tape_info_reply (XDR *xdrs, ndmp3_config_get_tape_info_reply *objp)
413 register int32_t *buf;
415 if (!xdr_ndmp3_error (xdrs, &objp->error))
417 if (!xdr_array (xdrs, (char **)&objp->tape_info.tape_info_val, (u_int *) &objp->tape_info.tape_info_len, ~0,
418 sizeof (ndmp3_device_info), (xdrproc_t) xdr_ndmp3_device_info))
424 xdr_ndmp3_config_get_scsi_info_reply (XDR *xdrs, ndmp3_config_get_scsi_info_reply *objp)
426 register int32_t *buf;
428 if (!xdr_ndmp3_error (xdrs, &objp->error))
430 if (!xdr_array (xdrs, (char **)&objp->scsi_info.scsi_info_val, (u_int *) &objp->scsi_info.scsi_info_len, ~0,
431 sizeof (ndmp3_device_info), (xdrproc_t) xdr_ndmp3_device_info))
437 xdr_ndmp3_scsi_open_request (XDR *xdrs, ndmp3_scsi_open_request *objp)
439 register int32_t *buf;
441 if (!xdr_string (xdrs, &objp->device, ~0))
447 xdr_ndmp3_scsi_open_reply (XDR *xdrs, ndmp3_scsi_open_reply *objp)
449 register int32_t *buf;
451 if (!xdr_ndmp3_error (xdrs, &objp->error))
457 xdr_ndmp3_scsi_close_reply (XDR *xdrs, ndmp3_scsi_close_reply *objp)
459 register int32_t *buf;
461 if (!xdr_ndmp3_error (xdrs, &objp->error))
467 xdr_ndmp3_scsi_get_state_reply (XDR *xdrs, ndmp3_scsi_get_state_reply *objp)
469 register int32_t *buf;
471 if (!xdr_ndmp3_error (xdrs, &objp->error))
473 if (!xdr_short (xdrs, &objp->target_controller))
475 if (!xdr_short (xdrs, &objp->target_id))
477 if (!xdr_short (xdrs, &objp->target_lun))
483 xdr_ndmp3_scsi_set_target_request (XDR *xdrs, ndmp3_scsi_set_target_request *objp)
485 register int32_t *buf;
487 if (!xdr_string (xdrs, &objp->device, ~0))
489 if (!xdr_u_short (xdrs, &objp->target_controller))
491 if (!xdr_u_short (xdrs, &objp->target_id))
493 if (!xdr_u_short (xdrs, &objp->target_lun))
499 xdr_ndmp3_scsi_set_target_reply (XDR *xdrs, ndmp3_scsi_set_target_reply *objp)
501 register int32_t *buf;
503 if (!xdr_ndmp3_error (xdrs, &objp->error))
509 xdr_ndmp3_scsi_reset_device_reply (XDR *xdrs, ndmp3_scsi_reset_device_reply *objp)
511 register int32_t *buf;
513 if (!xdr_ndmp3_error (xdrs, &objp->error))
519 xdr_ndmp3_scsi_reset_bus_reply (XDR *xdrs, ndmp3_scsi_reset_bus_reply *objp)
521 register int32_t *buf;
523 if (!xdr_ndmp3_error (xdrs, &objp->error))
529 xdr_ndmp3_execute_cdb_request (XDR *xdrs, ndmp3_execute_cdb_request *objp)
531 register int32_t *buf;
534 if (xdrs->x_op == XDR_ENCODE) {
535 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
537 if (!xdr_u_long (xdrs, &objp->flags))
539 if (!xdr_u_long (xdrs, &objp->timeout))
541 if (!xdr_u_long (xdrs, &objp->datain_len))
545 IXDR_PUT_U_LONG(buf, objp->flags);
546 IXDR_PUT_U_LONG(buf, objp->timeout);
547 IXDR_PUT_U_LONG(buf, objp->datain_len);
549 if (!xdr_bytes (xdrs, (char **)&objp->cdb.cdb_val, (u_int *) &objp->cdb.cdb_len, ~0))
551 if (!xdr_bytes (xdrs, (char **)&objp->dataout.dataout_val, (u_int *) &objp->dataout.dataout_len, ~0))
554 } else if (xdrs->x_op == XDR_DECODE) {
555 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
557 if (!xdr_u_long (xdrs, &objp->flags))
559 if (!xdr_u_long (xdrs, &objp->timeout))
561 if (!xdr_u_long (xdrs, &objp->datain_len))
565 objp->flags = IXDR_GET_U_LONG(buf);
566 objp->timeout = IXDR_GET_U_LONG(buf);
567 objp->datain_len = IXDR_GET_U_LONG(buf);
569 if (!xdr_bytes (xdrs, (char **)&objp->cdb.cdb_val, (u_int *) &objp->cdb.cdb_len, ~0))
571 if (!xdr_bytes (xdrs, (char **)&objp->dataout.dataout_val, (u_int *) &objp->dataout.dataout_len, ~0))
576 if (!xdr_u_long (xdrs, &objp->flags))
578 if (!xdr_u_long (xdrs, &objp->timeout))
580 if (!xdr_u_long (xdrs, &objp->datain_len))
582 if (!xdr_bytes (xdrs, (char **)&objp->cdb.cdb_val, (u_int *) &objp->cdb.cdb_len, ~0))
584 if (!xdr_bytes (xdrs, (char **)&objp->dataout.dataout_val, (u_int *) &objp->dataout.dataout_len, ~0))
590 xdr_ndmp3_execute_cdb_reply (XDR *xdrs, ndmp3_execute_cdb_reply *objp)
592 register int32_t *buf;
594 if (!xdr_ndmp3_error (xdrs, &objp->error))
596 if (!xdr_u_char (xdrs, &objp->status))
598 if (!xdr_u_long (xdrs, &objp->dataout_len))
600 if (!xdr_bytes (xdrs, (char **)&objp->datain.datain_val, (u_int *) &objp->datain.datain_len, ~0))
602 if (!xdr_bytes (xdrs, (char **)&objp->ext_sense.ext_sense_val, (u_int *) &objp->ext_sense.ext_sense_len, ~0))
608 xdr_ndmp3_scsi_execute_cdb_request (XDR *xdrs, ndmp3_scsi_execute_cdb_request *objp)
610 register int32_t *buf;
612 if (!xdr_ndmp3_execute_cdb_request (xdrs, objp))
618 xdr_ndmp3_scsi_execute_cdb_reply (XDR *xdrs, ndmp3_scsi_execute_cdb_reply *objp)
620 register int32_t *buf;
622 if (!xdr_ndmp3_execute_cdb_reply (xdrs, objp))
628 xdr_ndmp3_tape_open_mode (XDR *xdrs, ndmp3_tape_open_mode *objp)
630 register int32_t *buf;
632 if (!xdr_enum (xdrs, (enum_t *) objp))
638 xdr_ndmp3_tape_open_request (XDR *xdrs, ndmp3_tape_open_request *objp)
640 register int32_t *buf;
642 if (!xdr_string (xdrs, &objp->device, ~0))
644 if (!xdr_ndmp3_tape_open_mode (xdrs, &objp->mode))
650 xdr_ndmp3_tape_open_reply (XDR *xdrs, ndmp3_tape_open_reply *objp)
652 register int32_t *buf;
654 if (!xdr_ndmp3_error (xdrs, &objp->error))
660 xdr_ndmp3_tape_close_reply (XDR *xdrs, ndmp3_tape_close_reply *objp)
662 register int32_t *buf;
664 if (!xdr_ndmp3_error (xdrs, &objp->error))
670 xdr_ndmp3_tape_get_state_reply (XDR *xdrs, ndmp3_tape_get_state_reply *objp)
672 register int32_t *buf;
675 if (xdrs->x_op == XDR_ENCODE) {
676 if (!xdr_u_long (xdrs, &objp->invalid))
678 if (!xdr_ndmp3_error (xdrs, &objp->error))
680 buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT);
682 if (!xdr_u_long (xdrs, &objp->flags))
684 if (!xdr_u_long (xdrs, &objp->file_num))
686 if (!xdr_u_long (xdrs, &objp->soft_errors))
688 if (!xdr_u_long (xdrs, &objp->block_size))
690 if (!xdr_u_long (xdrs, &objp->blockno))
694 IXDR_PUT_U_LONG(buf, objp->flags);
695 IXDR_PUT_U_LONG(buf, objp->file_num);
696 IXDR_PUT_U_LONG(buf, objp->soft_errors);
697 IXDR_PUT_U_LONG(buf, objp->block_size);
698 IXDR_PUT_U_LONG(buf, objp->blockno);
700 if (!xdr_ndmp3_u_quad (xdrs, &objp->total_space))
702 if (!xdr_ndmp3_u_quad (xdrs, &objp->space_remain))
704 if (!xdr_u_long (xdrs, &objp->partition))
707 } else if (xdrs->x_op == XDR_DECODE) {
708 if (!xdr_u_long (xdrs, &objp->invalid))
710 if (!xdr_ndmp3_error (xdrs, &objp->error))
712 buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT);
714 if (!xdr_u_long (xdrs, &objp->flags))
716 if (!xdr_u_long (xdrs, &objp->file_num))
718 if (!xdr_u_long (xdrs, &objp->soft_errors))
720 if (!xdr_u_long (xdrs, &objp->block_size))
722 if (!xdr_u_long (xdrs, &objp->blockno))
726 objp->flags = IXDR_GET_U_LONG(buf);
727 objp->file_num = IXDR_GET_U_LONG(buf);
728 objp->soft_errors = IXDR_GET_U_LONG(buf);
729 objp->block_size = IXDR_GET_U_LONG(buf);
730 objp->blockno = IXDR_GET_U_LONG(buf);
732 if (!xdr_ndmp3_u_quad (xdrs, &objp->total_space))
734 if (!xdr_ndmp3_u_quad (xdrs, &objp->space_remain))
736 if (!xdr_u_long (xdrs, &objp->partition))
741 if (!xdr_u_long (xdrs, &objp->invalid))
743 if (!xdr_ndmp3_error (xdrs, &objp->error))
745 if (!xdr_u_long (xdrs, &objp->flags))
747 if (!xdr_u_long (xdrs, &objp->file_num))
749 if (!xdr_u_long (xdrs, &objp->soft_errors))
751 if (!xdr_u_long (xdrs, &objp->block_size))
753 if (!xdr_u_long (xdrs, &objp->blockno))
755 if (!xdr_ndmp3_u_quad (xdrs, &objp->total_space))
757 if (!xdr_ndmp3_u_quad (xdrs, &objp->space_remain))
759 if (!xdr_u_long (xdrs, &objp->partition))
765 xdr_ndmp3_tape_mtio_op (XDR *xdrs, ndmp3_tape_mtio_op *objp)
767 register int32_t *buf;
769 if (!xdr_enum (xdrs, (enum_t *) objp))
775 xdr_ndmp3_tape_mtio_request (XDR *xdrs, ndmp3_tape_mtio_request *objp)
777 register int32_t *buf;
779 if (!xdr_ndmp3_tape_mtio_op (xdrs, &objp->tape_op))
781 if (!xdr_u_long (xdrs, &objp->count))
787 xdr_ndmp3_tape_mtio_reply (XDR *xdrs, ndmp3_tape_mtio_reply *objp)
789 register int32_t *buf;
791 if (!xdr_ndmp3_error (xdrs, &objp->error))
793 if (!xdr_u_long (xdrs, &objp->resid_count))
799 xdr_ndmp3_tape_write_request (XDR *xdrs, ndmp3_tape_write_request *objp)
801 register int32_t *buf;
803 if (!xdr_bytes (xdrs, (char **)&objp->data_out.data_out_val, (u_int *) &objp->data_out.data_out_len, ~0))
809 xdr_ndmp3_tape_write_reply (XDR *xdrs, ndmp3_tape_write_reply *objp)
811 register int32_t *buf;
813 if (!xdr_ndmp3_error (xdrs, &objp->error))
815 if (!xdr_u_long (xdrs, &objp->count))
821 xdr_ndmp3_tape_read_request (XDR *xdrs, ndmp3_tape_read_request *objp)
823 register int32_t *buf;
825 if (!xdr_u_long (xdrs, &objp->count))
831 xdr_ndmp3_tape_read_reply (XDR *xdrs, ndmp3_tape_read_reply *objp)
833 register int32_t *buf;
835 if (!xdr_ndmp3_error (xdrs, &objp->error))
837 if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0))
843 xdr_ndmp3_tape_execute_cdb_request (XDR *xdrs, ndmp3_tape_execute_cdb_request *objp)
845 register int32_t *buf;
847 if (!xdr_ndmp3_execute_cdb_request (xdrs, objp))
853 xdr_ndmp3_tape_execute_cdb_reply (XDR *xdrs, ndmp3_tape_execute_cdb_reply *objp)
855 register int32_t *buf;
857 if (!xdr_ndmp3_execute_cdb_reply (xdrs, objp))
863 xdr_ndmp3_mover_state (XDR *xdrs, ndmp3_mover_state *objp)
865 register int32_t *buf;
867 if (!xdr_enum (xdrs, (enum_t *) objp))
873 xdr_ndmp3_mover_pause_reason (XDR *xdrs, ndmp3_mover_pause_reason *objp)
875 register int32_t *buf;
877 if (!xdr_enum (xdrs, (enum_t *) objp))
883 xdr_ndmp3_mover_halt_reason (XDR *xdrs, ndmp3_mover_halt_reason *objp)
885 register int32_t *buf;
887 if (!xdr_enum (xdrs, (enum_t *) objp))
893 xdr_ndmp3_mover_mode (XDR *xdrs, ndmp3_mover_mode *objp)
895 register int32_t *buf;
897 if (!xdr_enum (xdrs, (enum_t *) objp))
903 xdr_ndmp3_tcp_addr (XDR *xdrs, ndmp3_tcp_addr *objp)
905 register int32_t *buf;
907 if (!xdr_u_long (xdrs, &objp->ip_addr))
909 if (!xdr_u_short (xdrs, &objp->port))
915 xdr_ndmp3_fc_addr (XDR *xdrs, ndmp3_fc_addr *objp)
917 register int32_t *buf;
919 if (!xdr_u_long (xdrs, &objp->loop_id))
925 xdr_ndmp3_ipc_addr (XDR *xdrs, ndmp3_ipc_addr *objp)
927 register int32_t *buf;
929 if (!xdr_bytes (xdrs, (char **)&objp->comm_data.comm_data_val, (u_int *) &objp->comm_data.comm_data_len, ~0))
935 xdr_ndmp3_addr (XDR *xdrs, ndmp3_addr *objp)
937 register int32_t *buf;
939 if (!xdr_ndmp3_addr_type (xdrs, &objp->addr_type))
941 switch (objp->addr_type) {
942 case NDMP3_ADDR_LOCAL:
945 if (!xdr_ndmp3_tcp_addr (xdrs, &objp->ndmp3_addr_u.tcp_addr))
949 if (!xdr_ndmp3_fc_addr (xdrs, &objp->ndmp3_addr_u.fc_addr))
953 if (!xdr_ndmp3_ipc_addr (xdrs, &objp->ndmp3_addr_u.ipc_addr))
963 xdr_ndmp3_mover_get_state_reply (XDR *xdrs, ndmp3_mover_get_state_reply *objp)
965 register int32_t *buf;
967 if (!xdr_ndmp3_error (xdrs, &objp->error))
969 if (!xdr_ndmp3_mover_state (xdrs, &objp->state))
971 if (!xdr_ndmp3_mover_pause_reason (xdrs, &objp->pause_reason))
973 if (!xdr_ndmp3_mover_halt_reason (xdrs, &objp->halt_reason))
975 if (!xdr_u_long (xdrs, &objp->record_size))
977 if (!xdr_u_long (xdrs, &objp->record_num))
979 if (!xdr_ndmp3_u_quad (xdrs, &objp->data_written))
981 if (!xdr_ndmp3_u_quad (xdrs, &objp->seek_position))
983 if (!xdr_ndmp3_u_quad (xdrs, &objp->bytes_left_to_read))
985 if (!xdr_ndmp3_u_quad (xdrs, &objp->window_offset))
987 if (!xdr_ndmp3_u_quad (xdrs, &objp->window_length))
989 if (!xdr_ndmp3_addr (xdrs, &objp->data_connection_addr))
995 xdr_ndmp3_mover_listen_request (XDR *xdrs, ndmp3_mover_listen_request *objp)
997 register int32_t *buf;
999 if (!xdr_ndmp3_mover_mode (xdrs, &objp->mode))
1001 if (!xdr_ndmp3_addr_type (xdrs, &objp->addr_type))
1007 xdr_ndmp3_mover_listen_reply (XDR *xdrs, ndmp3_mover_listen_reply *objp)
1009 register int32_t *buf;
1011 if (!xdr_ndmp3_error (xdrs, &objp->error))
1013 if (!xdr_ndmp3_addr (xdrs, &objp->data_connection_addr))
1019 xdr_ndmp3_mover_connect_request (XDR *xdrs, ndmp3_mover_connect_request *objp)
1021 register int32_t *buf;
1023 if (!xdr_ndmp3_mover_mode (xdrs, &objp->mode))
1025 if (!xdr_ndmp3_addr (xdrs, &objp->addr))
1031 xdr_ndmp3_mover_connect_reply (XDR *xdrs, ndmp3_mover_connect_reply *objp)
1033 register int32_t *buf;
1035 if (!xdr_ndmp3_error (xdrs, &objp->error))
1041 xdr_ndmp3_mover_set_record_size_request (XDR *xdrs, ndmp3_mover_set_record_size_request *objp)
1043 register int32_t *buf;
1045 if (!xdr_u_long (xdrs, &objp->len))
1051 xdr_ndmp3_mover_set_record_size_reply (XDR *xdrs, ndmp3_mover_set_record_size_reply *objp)
1053 register int32_t *buf;
1055 if (!xdr_ndmp3_error (xdrs, &objp->error))
1061 xdr_ndmp3_mover_set_window_request (XDR *xdrs, ndmp3_mover_set_window_request *objp)
1063 register int32_t *buf;
1065 if (!xdr_ndmp3_u_quad (xdrs, &objp->offset))
1067 if (!xdr_ndmp3_u_quad (xdrs, &objp->length))
1073 xdr_ndmp3_mover_set_window_reply (XDR *xdrs, ndmp3_mover_set_window_reply *objp)
1075 register int32_t *buf;
1077 if (!xdr_ndmp3_error (xdrs, &objp->error))
1083 xdr_ndmp3_mover_continue_reply (XDR *xdrs, ndmp3_mover_continue_reply *objp)
1085 register int32_t *buf;
1087 if (!xdr_ndmp3_error (xdrs, &objp->error))
1093 xdr_ndmp3_mover_abort_reply (XDR *xdrs, ndmp3_mover_abort_reply *objp)
1095 register int32_t *buf;
1097 if (!xdr_ndmp3_error (xdrs, &objp->error))
1103 xdr_ndmp3_mover_stop_reply (XDR *xdrs, ndmp3_mover_stop_reply *objp)
1105 register int32_t *buf;
1107 if (!xdr_ndmp3_error (xdrs, &objp->error))
1113 xdr_ndmp3_mover_read_request (XDR *xdrs, ndmp3_mover_read_request *objp)
1115 register int32_t *buf;
1117 if (!xdr_ndmp3_u_quad (xdrs, &objp->offset))
1119 if (!xdr_ndmp3_u_quad (xdrs, &objp->length))
1125 xdr_ndmp3_mover_read_reply (XDR *xdrs, ndmp3_mover_read_reply *objp)
1127 register int32_t *buf;
1129 if (!xdr_ndmp3_error (xdrs, &objp->error))
1135 xdr_ndmp3_mover_close_reply (XDR *xdrs, ndmp3_mover_close_reply *objp)
1137 register int32_t *buf;
1139 if (!xdr_ndmp3_error (xdrs, &objp->error))
1145 xdr_ndmp3_data_operation (XDR *xdrs, ndmp3_data_operation *objp)
1147 register int32_t *buf;
1149 if (!xdr_enum (xdrs, (enum_t *) objp))
1155 xdr_ndmp3_data_state (XDR *xdrs, ndmp3_data_state *objp)
1157 register int32_t *buf;
1159 if (!xdr_enum (xdrs, (enum_t *) objp))
1165 xdr_ndmp3_data_halt_reason (XDR *xdrs, ndmp3_data_halt_reason *objp)
1167 register int32_t *buf;
1169 if (!xdr_enum (xdrs, (enum_t *) objp))
1175 xdr_ndmp3_data_get_state_reply (XDR *xdrs, ndmp3_data_get_state_reply *objp)
1177 register int32_t *buf;
1179 if (!xdr_u_long (xdrs, &objp->invalid))
1181 if (!xdr_ndmp3_error (xdrs, &objp->error))
1183 if (!xdr_ndmp3_data_operation (xdrs, &objp->operation))
1185 if (!xdr_ndmp3_data_state (xdrs, &objp->state))
1187 if (!xdr_ndmp3_data_halt_reason (xdrs, &objp->halt_reason))
1189 if (!xdr_ndmp3_u_quad (xdrs, &objp->bytes_processed))
1191 if (!xdr_ndmp3_u_quad (xdrs, &objp->est_bytes_remain))
1193 if (!xdr_u_long (xdrs, &objp->est_time_remain))
1195 if (!xdr_ndmp3_addr (xdrs, &objp->data_connection_addr))
1197 if (!xdr_ndmp3_u_quad (xdrs, &objp->read_offset))
1199 if (!xdr_ndmp3_u_quad (xdrs, &objp->read_length))
1205 xdr_ndmp3_data_start_backup_request (XDR *xdrs, ndmp3_data_start_backup_request *objp)
1207 register int32_t *buf;
1209 if (!xdr_string (xdrs, &objp->bu_type, ~0))
1211 if (!xdr_array (xdrs, (char **)&objp->env.env_val, (u_int *) &objp->env.env_len, ~0,
1212 sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval))
1218 xdr_ndmp3_data_start_backup_reply (XDR *xdrs, ndmp3_data_start_backup_reply *objp)
1220 register int32_t *buf;
1222 if (!xdr_ndmp3_error (xdrs, &objp->error))
1228 xdr_ndmp3_name (XDR *xdrs, ndmp3_name *objp)
1230 register int32_t *buf;
1232 if (!xdr_string (xdrs, &objp->original_path, ~0))
1234 if (!xdr_string (xdrs, &objp->destination_dir, ~0))
1236 if (!xdr_string (xdrs, &objp->new_name, ~0))
1238 if (!xdr_string (xdrs, &objp->other_name, ~0))
1240 if (!xdr_ndmp3_u_quad (xdrs, &objp->node))
1242 if (!xdr_ndmp3_u_quad (xdrs, &objp->fh_info))
1248 xdr_ndmp3_data_start_recover_request (XDR *xdrs, ndmp3_data_start_recover_request *objp)
1250 register int32_t *buf;
1252 if (!xdr_array (xdrs, (char **)&objp->env.env_val, (u_int *) &objp->env.env_len, ~0,
1253 sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval))
1255 if (!xdr_array (xdrs, (char **)&objp->nlist.nlist_val, (u_int *) &objp->nlist.nlist_len, ~0,
1256 sizeof (ndmp3_name), (xdrproc_t) xdr_ndmp3_name))
1258 if (!xdr_string (xdrs, &objp->bu_type, ~0))
1264 xdr_ndmp3_data_start_recover_reply (XDR *xdrs, ndmp3_data_start_recover_reply *objp)
1266 register int32_t *buf;
1268 if (!xdr_ndmp3_error (xdrs, &objp->error))
1274 xdr_ndmp3_data_start_recover_filehist_request (XDR *xdrs, ndmp3_data_start_recover_filehist_request *objp)
1276 register int32_t *buf;
1278 if (!xdr_ndmp3_data_start_recover_request (xdrs, objp))
1284 xdr_ndmp3_data_start_recover_filehist_reply (XDR *xdrs, ndmp3_data_start_recover_filehist_reply *objp)
1286 register int32_t *buf;
1288 if (!xdr_ndmp3_data_start_recover_reply (xdrs, objp))
1294 xdr_ndmp3_data_abort_reply (XDR *xdrs, ndmp3_data_abort_reply *objp)
1296 register int32_t *buf;
1298 if (!xdr_ndmp3_error (xdrs, &objp->error))
1304 xdr_ndmp3_data_stop_reply (XDR *xdrs, ndmp3_data_stop_reply *objp)
1306 register int32_t *buf;
1308 if (!xdr_ndmp3_error (xdrs, &objp->error))
1314 xdr_ndmp3_data_get_env_reply (XDR *xdrs, ndmp3_data_get_env_reply *objp)
1316 register int32_t *buf;
1318 if (!xdr_ndmp3_error (xdrs, &objp->error))
1320 if (!xdr_array (xdrs, (char **)&objp->env.env_val, (u_int *) &objp->env.env_len, ~0,
1321 sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval))
1327 xdr_ndmp3_data_listen_request (XDR *xdrs, ndmp3_data_listen_request *objp)
1329 register int32_t *buf;
1331 if (!xdr_ndmp3_addr_type (xdrs, &objp->addr_type))
1337 xdr_ndmp3_data_listen_reply (XDR *xdrs, ndmp3_data_listen_reply *objp)
1339 register int32_t *buf;
1341 if (!xdr_ndmp3_error (xdrs, &objp->error))
1343 if (!xdr_ndmp3_addr (xdrs, &objp->data_connection_addr))
1349 xdr_ndmp3_data_connect_request (XDR *xdrs, ndmp3_data_connect_request *objp)
1351 register int32_t *buf;
1353 if (!xdr_ndmp3_addr (xdrs, &objp->addr))
1359 xdr_ndmp3_data_connect_reply (XDR *xdrs, ndmp3_data_connect_reply *objp)
1361 register int32_t *buf;
1363 if (!xdr_ndmp3_error (xdrs, &objp->error))
1369 xdr_ndmp3_notify_data_halted_request (XDR *xdrs, ndmp3_notify_data_halted_request *objp)
1371 register int32_t *buf;
1373 if (!xdr_ndmp3_data_halt_reason (xdrs, &objp->reason))
1375 if (!xdr_string (xdrs, &objp->text_reason, ~0))
1381 xdr_ndmp3_connect_reason (XDR *xdrs, ndmp3_connect_reason *objp)
1383 register int32_t *buf;
1385 if (!xdr_enum (xdrs, (enum_t *) objp))
1391 xdr_ndmp3_notify_connected_request (XDR *xdrs, ndmp3_notify_connected_request *objp)
1393 register int32_t *buf;
1395 if (!xdr_ndmp3_connect_reason (xdrs, &objp->reason))
1397 if (!xdr_u_short (xdrs, &objp->protocol_version))
1399 if (!xdr_string (xdrs, &objp->text_reason, ~0))
1405 xdr_ndmp3_notify_mover_paused_request (XDR *xdrs, ndmp3_notify_mover_paused_request *objp)
1407 register int32_t *buf;
1409 if (!xdr_ndmp3_mover_pause_reason (xdrs, &objp->reason))
1411 if (!xdr_ndmp3_u_quad (xdrs, &objp->seek_position))
1417 xdr_ndmp3_notify_mover_halted_request (XDR *xdrs, ndmp3_notify_mover_halted_request *objp)
1419 register int32_t *buf;
1421 if (!xdr_ndmp3_mover_halt_reason (xdrs, &objp->reason))
1423 if (!xdr_string (xdrs, &objp->text_reason, ~0))
1429 xdr_ndmp3_notify_data_read_request (XDR *xdrs, ndmp3_notify_data_read_request *objp)
1431 register int32_t *buf;
1433 if (!xdr_ndmp3_u_quad (xdrs, &objp->offset))
1435 if (!xdr_ndmp3_u_quad (xdrs, &objp->length))
1441 xdr_ndmp3_log_type (XDR *xdrs, ndmp3_log_type *objp)
1443 register int32_t *buf;
1445 if (!xdr_enum (xdrs, (enum_t *) objp))
1451 xdr_ndmp3_log_message_request (XDR *xdrs, ndmp3_log_message_request *objp)
1453 register int32_t *buf;
1455 if (!xdr_ndmp3_log_type (xdrs, &objp->log_type))
1457 if (!xdr_u_long (xdrs, &objp->message_id))
1459 if (!xdr_string (xdrs, &objp->entry, ~0))
1465 xdr_ndmp3_log_file_request (XDR *xdrs, ndmp3_log_file_request *objp)
1467 register int32_t *buf;
1469 if (!xdr_string (xdrs, &objp->name, ~0))
1471 if (!xdr_ndmp3_error (xdrs, &objp->error))
1477 xdr_ndmp3_fs_type (XDR *xdrs, ndmp3_fs_type *objp)
1479 register int32_t *buf;
1481 if (!xdr_enum (xdrs, (enum_t *) objp))
1487 xdr_ndmp3_path (XDR *xdrs, ndmp3_path *objp)
1489 register int32_t *buf;
1491 if (!xdr_string (xdrs, objp, ~0))
1497 xdr_ndmp3_nt_path (XDR *xdrs, ndmp3_nt_path *objp)
1499 register int32_t *buf;
1501 if (!xdr_ndmp3_path (xdrs, &objp->nt_path))
1503 if (!xdr_ndmp3_path (xdrs, &objp->dos_path))
1509 xdr_ndmp3_file_name (XDR *xdrs, ndmp3_file_name *objp)
1511 register int32_t *buf;
1513 if (!xdr_ndmp3_fs_type (xdrs, &objp->fs_type))
1515 switch (objp->fs_type) {
1517 if (!xdr_ndmp3_path (xdrs, &objp->ndmp3_file_name_u.unix_name))
1521 if (!xdr_ndmp3_nt_path (xdrs, &objp->ndmp3_file_name_u.nt_name))
1525 if (!xdr_ndmp3_path (xdrs, &objp->ndmp3_file_name_u.other_name))
1533 xdr_ndmp3_file_type (XDR *xdrs, ndmp3_file_type *objp)
1535 register int32_t *buf;
1537 if (!xdr_enum (xdrs, (enum_t *) objp))
1543 xdr_ndmp3_file_stat (XDR *xdrs, ndmp3_file_stat *objp)
1545 register int32_t *buf;
1548 if (xdrs->x_op == XDR_ENCODE) {
1549 if (!xdr_u_long (xdrs, &objp->invalid))
1551 if (!xdr_ndmp3_fs_type (xdrs, &objp->fs_type))
1553 if (!xdr_ndmp3_file_type (xdrs, &objp->ftype))
1555 buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
1557 if (!xdr_u_long (xdrs, &objp->mtime))
1559 if (!xdr_u_long (xdrs, &objp->atime))
1561 if (!xdr_u_long (xdrs, &objp->ctime))
1563 if (!xdr_u_long (xdrs, &objp->owner))
1565 if (!xdr_u_long (xdrs, &objp->group))
1567 if (!xdr_u_long (xdrs, &objp->fattr))
1571 IXDR_PUT_U_LONG(buf, objp->mtime);
1572 IXDR_PUT_U_LONG(buf, objp->atime);
1573 IXDR_PUT_U_LONG(buf, objp->ctime);
1574 IXDR_PUT_U_LONG(buf, objp->owner);
1575 IXDR_PUT_U_LONG(buf, objp->group);
1576 IXDR_PUT_U_LONG(buf, objp->fattr);
1578 if (!xdr_ndmp3_u_quad (xdrs, &objp->size))
1580 if (!xdr_u_long (xdrs, &objp->links))
1583 } else if (xdrs->x_op == XDR_DECODE) {
1584 if (!xdr_u_long (xdrs, &objp->invalid))
1586 if (!xdr_ndmp3_fs_type (xdrs, &objp->fs_type))
1588 if (!xdr_ndmp3_file_type (xdrs, &objp->ftype))
1590 buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
1592 if (!xdr_u_long (xdrs, &objp->mtime))
1594 if (!xdr_u_long (xdrs, &objp->atime))
1596 if (!xdr_u_long (xdrs, &objp->ctime))
1598 if (!xdr_u_long (xdrs, &objp->owner))
1600 if (!xdr_u_long (xdrs, &objp->group))
1602 if (!xdr_u_long (xdrs, &objp->fattr))
1606 objp->mtime = IXDR_GET_U_LONG(buf);
1607 objp->atime = IXDR_GET_U_LONG(buf);
1608 objp->ctime = IXDR_GET_U_LONG(buf);
1609 objp->owner = IXDR_GET_U_LONG(buf);
1610 objp->group = IXDR_GET_U_LONG(buf);
1611 objp->fattr = IXDR_GET_U_LONG(buf);
1613 if (!xdr_ndmp3_u_quad (xdrs, &objp->size))
1615 if (!xdr_u_long (xdrs, &objp->links))
1620 if (!xdr_u_long (xdrs, &objp->invalid))
1622 if (!xdr_ndmp3_fs_type (xdrs, &objp->fs_type))
1624 if (!xdr_ndmp3_file_type (xdrs, &objp->ftype))
1626 if (!xdr_u_long (xdrs, &objp->mtime))
1628 if (!xdr_u_long (xdrs, &objp->atime))
1630 if (!xdr_u_long (xdrs, &objp->ctime))
1632 if (!xdr_u_long (xdrs, &objp->owner))
1634 if (!xdr_u_long (xdrs, &objp->group))
1636 if (!xdr_u_long (xdrs, &objp->fattr))
1638 if (!xdr_ndmp3_u_quad (xdrs, &objp->size))
1640 if (!xdr_u_long (xdrs, &objp->links))
1646 xdr_ndmp3_file (XDR *xdrs, ndmp3_file *objp)
1648 register int32_t *buf;
1650 if (!xdr_array (xdrs, (char **)&objp->names.names_val, (u_int *) &objp->names.names_len, ~0,
1651 sizeof (ndmp3_file_name), (xdrproc_t) xdr_ndmp3_file_name))
1653 if (!xdr_array (xdrs, (char **)&objp->stats.stats_val, (u_int *) &objp->stats.stats_len, ~0,
1654 sizeof (ndmp3_file_stat), (xdrproc_t) xdr_ndmp3_file_stat))
1656 if (!xdr_ndmp3_u_quad (xdrs, &objp->node))
1658 if (!xdr_ndmp3_u_quad (xdrs, &objp->fh_info))
1664 xdr_ndmp3_fh_add_file_request (XDR *xdrs, ndmp3_fh_add_file_request *objp)
1666 register int32_t *buf;
1668 if (!xdr_array (xdrs, (char **)&objp->files.files_val, (u_int *) &objp->files.files_len, ~0,
1669 sizeof (ndmp3_file), (xdrproc_t) xdr_ndmp3_file))
1675 xdr_ndmp3_dir (XDR *xdrs, ndmp3_dir *objp)
1677 register int32_t *buf;
1679 if (!xdr_array (xdrs, (char **)&objp->names.names_val, (u_int *) &objp->names.names_len, ~0,
1680 sizeof (ndmp3_file_name), (xdrproc_t) xdr_ndmp3_file_name))
1682 if (!xdr_ndmp3_u_quad (xdrs, &objp->node))
1684 if (!xdr_ndmp3_u_quad (xdrs, &objp->parent))
1690 xdr_ndmp3_fh_add_dir_request (XDR *xdrs, ndmp3_fh_add_dir_request *objp)
1692 register int32_t *buf;
1694 if (!xdr_array (xdrs, (char **)&objp->dirs.dirs_val, (u_int *) &objp->dirs.dirs_len, ~0,
1695 sizeof (ndmp3_dir), (xdrproc_t) xdr_ndmp3_dir))
1701 xdr_ndmp3_node (XDR *xdrs, ndmp3_node *objp)
1703 register int32_t *buf;
1705 if (!xdr_array (xdrs, (char **)&objp->stats.stats_val, (u_int *) &objp->stats.stats_len, ~0,
1706 sizeof (ndmp3_file_stat), (xdrproc_t) xdr_ndmp3_file_stat))
1708 if (!xdr_ndmp3_u_quad (xdrs, &objp->node))
1710 if (!xdr_ndmp3_u_quad (xdrs, &objp->fh_info))
1716 xdr_ndmp3_fh_add_node_request (XDR *xdrs, ndmp3_fh_add_node_request *objp)
1718 register int32_t *buf;
1720 if (!xdr_array (xdrs, (char **)&objp->nodes.nodes_val, (u_int *) &objp->nodes.nodes_len, ~0,
1721 sizeof (ndmp3_node), (xdrproc_t) xdr_ndmp3_node))
1725 #endif /* !NDMOS_OPTION_NO_NDMP3 */