Lines Matching refs:reply

107 	ndmp_config_get_host_info_reply_v2 reply;  in ndmpd_config_get_host_info_v2()  local
114 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_host_info_v2()
118 reply.error = NDMP_NO_ERR; in ndmpd_config_get_host_info_v2()
119 reply.hostname = buf; in ndmpd_config_get_host_info_v2()
121 reply.os_type = uts.sysname; in ndmpd_config_get_host_info_v2()
122 reply.os_vers = uts.release; in ndmpd_config_get_host_info_v2()
126 reply.error = NDMP_UNDEFINED_ERR; in ndmpd_config_get_host_info_v2()
135 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v2()
138 reply.auth_type.auth_type_len = 1; in ndmpd_config_get_host_info_v2()
139 reply.auth_type.auth_type_val = auth_types; in ndmpd_config_get_host_info_v2()
141 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_host_info_v2()
163 ndmp_config_get_butype_attr_reply reply; in ndmpd_config_get_butype_attr_v2() local
167 reply.error = NDMP_NO_ERR; in ndmpd_config_get_butype_attr_v2()
170 (void) simple_get_attrs(&reply.attrs); in ndmpd_config_get_butype_attr_v2()
172 reply.attrs = NDMP_NO_BACKUP_FILELIST; in ndmpd_config_get_butype_attr_v2()
177 reply.error = NDMP_ILLEGAL_ARGS_ERR; in ndmpd_config_get_butype_attr_v2()
180 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_butype_attr_v2()
202 ndmp_config_get_mover_type_reply reply; in ndmpd_config_get_mover_type_v2() local
208 reply.error = NDMP_NO_ERR; in ndmpd_config_get_mover_type_v2()
209 reply.methods.methods_len = 2; in ndmpd_config_get_mover_type_v2()
210 reply.methods.methods_val = types; in ndmpd_config_get_mover_type_v2()
212 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_mover_type_v2()
235 ndmp_config_get_auth_attr_reply reply; in ndmpd_config_get_auth_attr_v2() local
240 reply.error = NDMP_NO_ERR; in ndmpd_config_get_auth_attr_v2()
241 reply.server_attr.auth_type = request->auth_type; in ndmpd_config_get_auth_attr_v2()
249 (void) memcpy(reply.server_attr.ndmp_auth_attr_u.challenge, in ndmpd_config_get_auth_attr_v2()
259 reply.error = NDMP_ILLEGAL_ARGS_ERR; in ndmpd_config_get_auth_attr_v2()
263 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_auth_attr_v2()
291 ndmp_config_get_host_info_reply_v3 reply; in ndmpd_config_get_host_info_v3() local
297 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_host_info_v3()
302 reply.error = NDMP_NO_ERR; in ndmpd_config_get_host_info_v3()
303 reply.hostname = buf; in ndmpd_config_get_host_info_v3()
305 reply.os_type = uts.sysname; in ndmpd_config_get_host_info_v3()
306 reply.os_vers = uts.release; in ndmpd_config_get_host_info_v3()
311 reply.error = NDMP_UNDEFINED_ERR; in ndmpd_config_get_host_info_v3()
320 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v3()
322 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_host_info_v3()
345 ndmp_config_get_connection_type_reply_v3 reply; in ndmpd_config_get_connection_type_v3() local
348 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_connection_type_v3()
350 reply.error = NDMP_NO_ERR; in ndmpd_config_get_connection_type_v3()
354 reply.addr_types.addr_types_len = 2; in ndmpd_config_get_connection_type_v3()
355 reply.addr_types.addr_types_val = addr_types; in ndmpd_config_get_connection_type_v3()
357 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_connection_type_v3()
380 ndmp_config_get_auth_attr_reply reply; in ndmpd_config_get_auth_attr_v3() local
385 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_auth_attr_v3()
386 reply.error = NDMP_NO_ERR; in ndmpd_config_get_auth_attr_v3()
387 reply.server_attr.auth_type = request->auth_type; in ndmpd_config_get_auth_attr_v3()
395 (void) memcpy(reply.server_attr.ndmp_auth_attr_u.challenge, in ndmpd_config_get_auth_attr_v3()
405 reply.error = NDMP_ILLEGAL_ARGS_ERR; in ndmpd_config_get_auth_attr_v3()
409 ndmp_send_reply(connection, (void *) &reply, in ndmpd_config_get_auth_attr_v3()
431 ndmp_config_get_butype_info_reply_v3 reply; in ndmpd_config_get_butype_info_v3() local
441 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_butype_info_v3()
508 reply.error = NDMP_NO_ERR; in ndmpd_config_get_butype_info_v3()
509 reply.butype_info.butype_info_len = ARRAY_LEN(info, ndmp_butype_info); in ndmpd_config_get_butype_info_v3()
510 reply.butype_info.butype_info_val = info; in ndmpd_config_get_butype_info_v3()
512 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_butype_info_v3()
533 ndmp_config_get_fs_info_reply_v3 reply; in ndmpd_config_get_fs_info_v3() local
542 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_fs_info_v3()
543 reply.error = NDMP_NO_ERR; in ndmpd_config_get_fs_info_v3()
547 reply.error = NDMP_UNDEFINED_ERR; in ndmpd_config_get_fs_info_v3()
562 reply.error = NDMP_UNDEFINED_ERR; in ndmpd_config_get_fs_info_v3()
569 reply.error = NDMP_NO_MEM_ERR; in ndmpd_config_get_fs_info_v3()
590 reply.error = NDMP_NO_MEM_ERR; in ndmpd_config_get_fs_info_v3()
628 reply.error = NDMP_NO_MEM_ERR; in ndmpd_config_get_fs_info_v3()
650 if (reply.error == NDMP_NO_ERR) { in ndmpd_config_get_fs_info_v3()
651 reply.fs_info.fs_info_len = len; in ndmpd_config_get_fs_info_v3()
652 reply.fs_info.fs_info_val = fsip_save; in ndmpd_config_get_fs_info_v3()
654 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_fs_info_v3()
685 ndmp_config_get_tape_info_reply_v3 reply; in ndmpd_config_get_tape_info_v3() local
695 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_tape_info_v3()
705 reply.error = NDMP_NO_MEM_ERR; in ndmpd_config_get_tape_info_v3()
706 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_tape_info_v3()
711 reply.error = NDMP_NO_ERR; in ndmpd_config_get_tape_info_v3()
752 reply.error = NDMP_NO_DEVICE_ERR; in ndmpd_config_get_tape_info_v3()
753 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_tape_info_v3()
760 reply.tape_info.tape_info_len = n; in ndmpd_config_get_tape_info_v3()
761 reply.tape_info.tape_info_val = tip_save; in ndmpd_config_get_tape_info_v3()
763 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_tape_info_v3()
790 ndmp_config_get_scsi_info_reply_v3 reply; in ndmpd_config_get_scsi_info_v3() local
799 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_scsi_info_v3()
808 reply.error = NDMP_NO_MEM_ERR; in ndmpd_config_get_scsi_info_v3()
809 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_scsi_info_v3()
814 reply.error = NDMP_NO_ERR; in ndmpd_config_get_scsi_info_v3()
848 reply.scsi_info.scsi_info_len = n; in ndmpd_config_get_scsi_info_v3()
849 reply.scsi_info.scsi_info_val = sip_save; in ndmpd_config_get_scsi_info_v3()
851 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_scsi_info_v3()
877 ndmp_config_get_server_info_reply_v3 reply; in ndmpd_config_get_server_info_v3() local
882 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_server_info_v3()
883 reply.error = NDMP_NO_ERR; in ndmpd_config_get_server_info_v3()
887 reply.vendor_name = VENDOR_NAME; in ndmpd_config_get_server_info_v3()
888 reply.product_name = PRODUCT_NAME; in ndmpd_config_get_server_info_v3()
891 reply.revision_number = rev_number; in ndmpd_config_get_server_info_v3()
893 reply.vendor_name = "\0"; in ndmpd_config_get_server_info_v3()
894 reply.product_name = "\0"; in ndmpd_config_get_server_info_v3()
895 reply.revision_number = "\0"; in ndmpd_config_get_server_info_v3()
900 reply.vendor_name, reply.product_name, reply.revision_number); in ndmpd_config_get_server_info_v3()
904 reply.auth_type.auth_type_len = ARRAY_LEN(auth_types, ndmp_auth_type); in ndmpd_config_get_server_info_v3()
905 reply.auth_type.auth_type_val = auth_types; in ndmpd_config_get_server_info_v3()
907 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_server_info_v3()
936 ndmp_config_get_butype_info_reply_v4 reply; in ndmpd_config_get_butype_info_v4() local
948 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_butype_info_v4()
1024 reply.error = NDMP_NO_ERR; in ndmpd_config_get_butype_info_v4()
1025 reply.butype_info.butype_info_len = ARRAY_LEN(info, ndmp_butype_info); in ndmpd_config_get_butype_info_v4()
1026 reply.butype_info.butype_info_val = info; in ndmpd_config_get_butype_info_v4()
1028 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_butype_info_v4()
1049 ndmp_config_get_ext_list_reply_v4 reply; in ndmpd_config_get_ext_list_v4() local
1052 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_ext_list_v4()
1059 reply.error = NDMP_EXT_DANDN_ILLEGAL_ERR; in ndmpd_config_get_ext_list_v4()
1065 reply.error = NDMP_NO_ERR; in ndmpd_config_get_ext_list_v4()
1068 reply.class_list.class_list_val = NULL; in ndmpd_config_get_ext_list_v4()
1069 reply.class_list.class_list_len = 0; in ndmpd_config_get_ext_list_v4()
1071 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_get_ext_list_v4()
1090 ndmp_config_set_ext_list_reply_v4 reply; in ndmpd_config_set_ext_list_v4() local
1096 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_set_ext_list_v4()
1104 reply.error = NDMP_PRECONDITION_ERR; in ndmpd_config_set_ext_list_v4()
1110 reply.error = NDMP_EXT_DANDN_ILLEGAL_ERR; in ndmpd_config_set_ext_list_v4()
1117 reply.error = NDMP_CLASS_NOT_SUPPORTED_ERR; in ndmpd_config_set_ext_list_v4()
1120 reply.error = NDMP_NO_ERR; in ndmpd_config_set_ext_list_v4()
1124 ndmp_send_reply(connection, (void *)&reply, in ndmpd_config_set_ext_list_v4()