Lines Matching defs:reply
139 ndmp_mover_get_state_reply_v2 reply;
142 reply.error = NDMP_NO_ERR;
143 reply.state = session->ns_mover.md_state;
144 reply.pause_reason = session->ns_mover.md_pause_reason;
145 reply.halt_reason = session->ns_mover.md_halt_reason;
146 reply.record_size = session->ns_mover.md_record_size;
147 reply.record_num = session->ns_mover.md_record_num;
148 reply.data_written =
150 reply.seek_position =
152 reply.bytes_left_to_read =
154 reply.window_offset =
156 reply.window_length =
159 ndmp_send_reply(connection, (void *) &reply,
160 "sending tape_get_state reply");
180 ndmp_mover_listen_reply_v2 reply;
190 reply.error = NDMP_ILLEGAL_STATE_ERR;
191 ndmp_send_reply(connection, (void *) &reply,
192 "sending mover_listen reply");
198 reply.mover.addr_type = NDMP_ADDR_LOCAL;
201 reply.error = NDMP_IO_ERR;
202 ndmp_send_reply(connection, (void *) &reply,
203 "sending mover_listen reply");
206 reply.mover.addr_type = NDMP_ADDR_TCP;
207 reply.mover.ndmp_mover_addr_u.addr.ip_addr = htonl(addr);
208 reply.mover.ndmp_mover_addr_u.addr.port = htons(port);
222 reply.error = NDMP_NO_ERR;
223 ndmp_send_reply(connection, (void *) &reply,
224 "sending mover_listen reply");
244 ndmp_mover_continue_reply reply;
250 reply.error = NDMP_ILLEGAL_STATE_ERR;
251 ndmp_send_reply(connection, (void *) &reply,
252 "sending mover_continue reply");
256 reply.error = NDMP_NO_ERR;
257 ndmp_send_reply(connection, (void *) &reply,
258 "sending mover_continue reply");
278 ndmp_mover_abort_reply reply;
285 reply.error = NDMP_ILLEGAL_STATE_ERR;
286 ndmp_send_reply(connection, (void *) &reply,
287 "sending mover_abort reply");
291 reply.error = NDMP_NO_ERR;
292 ndmp_send_reply(connection, (void *) &reply,
293 "sending mover_abort reply");
316 ndmp_mover_stop_reply reply;
322 reply.error = NDMP_ILLEGAL_STATE_ERR;
323 ndmp_send_reply(connection, (void *) &reply,
324 "sending mover_stop reply");
329 reply.error = NDMP_NO_ERR;
330 ndmp_send_reply(connection, (void *) &reply,
331 "sending mover_stop reply");
357 ndmp_mover_set_window_reply reply;
372 reply.error = NDMP_ILLEGAL_STATE_ERR;
377 reply.error = NDMP_ILLEGAL_ARGS_ERR;
381 reply.error = NDMP_NO_ERR;
391 ndmp_send_reply(connection, (void *) &reply,
392 "sending mover_set_window reply");
418 ndmp_mover_read_reply reply;
426 reply.error = NDMP_ILLEGAL_STATE_ERR;
427 ndmp_send_reply(connection, &reply,
428 "sending mover_read reply");
433 reply.error = NDMP_DEV_NOT_OPEN_ERR;
434 ndmp_send_reply(connection, &reply,
435 "sending mover_read reply");
439 reply.error = NDMP_NO_ERR;
440 ndmp_send_reply(connection, &reply, "sending mover_read reply");
479 ndmp_mover_close_reply reply;
485 reply.error = NDMP_ILLEGAL_STATE_ERR;
486 ndmp_send_reply(connection, &reply,
487 "sending mover_close reply");
492 reply.error = NDMP_NO_ERR;
493 ndmp_send_reply(connection, &reply, "sending mover_close reply");
515 ndmp_mover_set_record_size_reply reply;
524 reply.error = NDMP_NO_ERR;
525 ndmp_send_reply(connection, &reply,
526 "sending mover_set_record_size reply");
553 ndmp_mover_get_state_reply_v3 reply;
556 (void) memset((void*)&reply, 0, sizeof (reply));
558 reply.error = NDMP_NO_ERR;
559 reply.state = session->ns_mover.md_state;
560 reply.pause_reason = session->ns_mover.md_pause_reason;
561 reply.halt_reason = session->ns_mover.md_halt_reason;
562 reply.record_size = session->ns_mover.md_record_size;
563 reply.record_num = session->ns_mover.md_record_num;
564 reply.data_written =
566 reply.seek_position =
568 reply.bytes_left_to_read =
570 reply.window_offset =
572 reply.window_length =
575 ndmp_copy_addr_v3(&reply.data_connection_addr,
578 ndmp_send_reply(connection, &reply,
579 "sending ndmp_mover_get_state reply");
602 ndmp_mover_listen_reply_v3 reply;
609 (void) memset((void*)&reply, 0, sizeof (reply));
610 reply.error = NDMP_NO_ERR;
614 reply.error = NDMP_ILLEGAL_ARGS_ERR;
617 reply.error = NDMP_ILLEGAL_ARGS_ERR;
621 reply.error = NDMP_ILLEGAL_STATE_ERR;
625 reply.error = NDMP_ILLEGAL_STATE_ERR;
629 reply.error = NDMP_DEV_NOT_OPEN_ERR;
633 reply.error = NDMP_PERMISSION_ERR;
637 if (reply.error != NDMP_NO_ERR) {
638 ndmp_send_reply(connection, &reply,
639 "error sending ndmp_mover_listen reply");
645 reply.data_connection_addr.addr_type = NDMP_ADDR_LOCAL;
647 reply.error = NDMP_NO_ERR;
651 reply.error = NDMP_IO_ERR;
654 reply.error = NDMP_NO_ERR;
655 reply.data_connection_addr.addr_type = NDMP_ADDR_TCP;
656 reply.data_connection_addr.tcp_ip_v3 = htonl(addr);
657 reply.data_connection_addr.tcp_port_v3 = htons(port);
665 reply.error = NDMP_ILLEGAL_ARGS_ERR;
670 if (reply.error == NDMP_NO_ERR) {
675 ndmp_send_reply(connection, &reply,
676 "error sending ndmp_mover_listen reply");
696 ndmp_mover_continue_reply reply;
701 (void) memset((void*)&reply, 0, sizeof (reply));
705 reply.error = NDMP_ILLEGAL_STATE_ERR;
706 ndmp_send_reply(connection, (void *) &reply,
707 "sending mover_continue reply");
714 reply.error = NDMP_PRECONDITION_ERR;
715 ndmp_send_reply(connection, (void *) &reply,
716 "sending mover_continue reply");
771 reply.error = NDMP_NO_ERR;
772 ndmp_send_reply(connection, (void *) &reply,
773 "sending mover_continue reply");
793 ndmp_mover_abort_reply reply;
800 reply.error = NDMP_ILLEGAL_STATE_ERR;
801 ndmp_send_reply(connection, (void *) &reply,
802 "sending mover_abort reply");
806 reply.error = NDMP_NO_ERR;
807 ndmp_send_reply(connection, (void *) &reply,
808 "sending mover_abort reply");
831 ndmp_mover_set_window_reply reply;
845 reply.error = NDMP_ILLEGAL_STATE_ERR;
850 reply.error = NDMP_PRECONDITION_ERR;
852 reply.error = NDMP_ILLEGAL_ARGS_ERR;
855 reply.error = NDMP_NO_ERR;
858 reply.error = NDMP_ILLEGAL_ARGS_ERR;
863 if (reply.error != NDMP_NO_ERR) {
864 ndmp_send_reply(connection, (void *) &reply,
865 "sending mover_set_window_v3 reply");
890 ndmp_send_reply(connection, (void *) &reply,
891 "sending mover_set_window_v3 reply");
918 ndmp_mover_read_reply reply;
922 (void) memset((void*)&reply, 0, sizeof (reply));
926 reply.error = NDMP_ILLEGAL_STATE_ERR;
929 reply.error = NDMP_READ_IN_PROGRESS_ERR;
932 reply.error = NDMP_DEV_NOT_OPEN_ERR;
937 reply.error = NDMP_ILLEGAL_ARGS_ERR;
940 reply.error = NDMP_NO_ERR;
943 ndmp_send_reply(connection, (void *) &reply,
945 if (reply.error != NDMP_NO_ERR)
990 ndmp_mover_set_record_size_reply reply;
997 reply.error = NDMP_ILLEGAL_STATE_ERR;
1001 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1006 reply.error = NDMP_NO_ERR;
1008 reply.error = NDMP_NO_MEM_ERR;
1010 reply.error = NDMP_NO_ERR;
1017 ndmp_send_reply(connection, (void *) &reply,
1018 "sending mover_set_record_size reply");
1038 ndmp_mover_connect_reply_v3 reply;
1043 (void) memset((void*)&reply, 0, sizeof (reply));
1047 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1050 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1054 reply.error = NDMP_ILLEGAL_STATE_ERR;
1058 reply.error = NDMP_DEV_NOT_OPEN_ERR;
1062 reply.error = NDMP_WRITE_PROTECT_ERR;
1065 reply.error = NDMP_NO_ERR;
1067 if (reply.error != NDMP_NO_ERR) {
1068 ndmp_send_reply(connection, (void *) &reply,
1069 "sending ndmp_mover_connect reply");
1083 reply.error = NDMP_ILLEGAL_STATE_ERR;
1089 reply.error = mover_connect_sock(session, request->mode,
1094 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1099 if (reply.error == NDMP_NO_ERR) {
1106 ndmp_send_reply(connection, (void *) &reply,
1107 "sending ndmp_mover_connect reply");
1134 ndmp_mover_get_state_reply_v4 reply;
1137 (void) memset((void*)&reply, 0, sizeof (reply));
1139 reply.error = NDMP_NO_ERR;
1140 reply.state = session->ns_mover.md_state;
1141 reply.mode = session->ns_mover.md_mode;
1142 reply.pause_reason = session->ns_mover.md_pause_reason;
1143 reply.halt_reason = session->ns_mover.md_halt_reason;
1144 reply.record_size = session->ns_mover.md_record_size;
1145 reply.record_num = session->ns_mover.md_record_num;
1146 reply.bytes_moved =
1148 reply.seek_position =
1150 reply.bytes_left_to_read =
1152 reply.window_offset =
1154 reply.window_length =
1157 ndmp_copy_addr_v4(&reply.data_connection_addr,
1160 ndmp_send_reply(connection, (void *) &reply,
1161 "sending ndmp_mover_get_state reply");
1162 free(reply.data_connection_addr.tcp_addr_v4);
1186 ndmp_mover_listen_reply_v4 reply;
1193 (void) memset((void*)&reply, 0, sizeof (reply));
1194 reply.error = NDMP_NO_ERR;
1198 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1201 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1205 reply.error = NDMP_ILLEGAL_STATE_ERR;
1209 reply.error = NDMP_ILLEGAL_STATE_ERR;
1213 reply.error = NDMP_DEV_NOT_OPEN_ERR;
1216 reply.error = NDMP_PRECONDITION_ERR;
1220 reply.error = NDMP_PERMISSION_ERR;
1224 if (reply.error != NDMP_NO_ERR) {
1225 ndmp_send_reply(connection, (void *) &reply,
1226 "error sending ndmp_mover_listen reply");
1232 reply.connect_addr.addr_type = NDMP_ADDR_LOCAL;
1234 reply.error = NDMP_NO_ERR;
1238 reply.error = NDMP_IO_ERR;
1241 reply.error = NDMP_NO_ERR;
1251 ndmp_copy_addr_v4(&reply.connect_addr,
1262 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1267 if (reply.error == NDMP_NO_ERR) {
1272 ndmp_send_reply(connection, (void *) &reply,
1273 "error sending ndmp_mover_listen reply");
1274 free(reply.connect_addr.tcp_addr_v4);
1293 ndmp_mover_connect_reply_v4 reply;
1297 (void) memset((void*)&reply, 0, sizeof (reply));
1301 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1304 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1308 reply.error = NDMP_ILLEGAL_STATE_ERR;
1312 reply.error = NDMP_DEV_NOT_OPEN_ERR;
1316 reply.error = NDMP_PERMISSION_ERR;
1319 reply.error = NDMP_PRECONDITION_ERR;
1322 reply.error = NDMP_NO_ERR;
1324 if (reply.error != NDMP_NO_ERR) {
1325 ndmp_send_reply(connection, (void *) &reply,
1326 "sending ndmp_mover_connect reply");
1340 reply.error = NDMP_ILLEGAL_STATE_ERR;
1346 reply.error = mover_connect_sock(session, request->mode,
1351 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1356 if (reply.error == NDMP_NO_ERR) {
1363 ndmp_send_reply(connection, (void *) &reply,
1364 "sending ndmp_mover_connect reply");
2771 * reply of the request (which resulted in calling this function)
3142 * reply of the request (which resulted in calling this function)