ndmp_connection_t
ndmp_connection_t *ns_connection; /* NDMP connection to client */
typedef void ndmpd_func_t(ndmp_connection_t *, void *);
extern void connection_handler(ndmp_connection_t *);
extern void ndmpd_audit_backup(ndmp_connection_t *conn, char *path,
extern void ndmpd_audit_restore(ndmp_connection_t *conn,
extern void ndmpd_audit_connect(ndmp_connection_t *conn,
extern void ndmpd_audit_disconnect(ndmp_connection_t *conn);
extern int ndmp_connect_list_add(ndmp_connection_t *, int *);
extern int ndmp_connect_list_del(ndmp_connection_t *);
extern void ndmp_send_reply(ndmp_connection_t *,
extern int ndmp_open_list_add(ndmp_connection_t *, char *, int, int, int);
extern void ndmp_open_list_release(ndmp_connection_t *);
static int ndmp_process_messages(ndmp_connection_t *connection,
static ndmp_msg_handler_t *ndmp_get_handler(ndmp_connection_t *connection,
ndmp_recv_msg(ndmp_connection_t *connection)
ndmp_process_messages(ndmp_connection_t *connection, boolean_t reply_expected)
ndmp_free_message((ndmp_connection_t *)
(void) ndmp_send_response((ndmp_connection_t *)
ndmp_free_message((ndmp_connection_t *)connection);
ndmp_free_message((ndmp_connection_t *)
(void) ndmp_send_response((ndmp_connection_t *)
ndmp_free_message((ndmp_connection_t *)connection);
ndmp_free_message((ndmp_connection_t *)connection);
ndmp_connection_t *
ndmp_get_handler(ndmp_connection_t *connection, ndmp_message message)
ndmp_connection_t *connection;
connection = ndmp_malloc(sizeof (ndmp_connection_t));
ndmpd_audit_backup(ndmp_connection_t *conn,
ndmpd_audit_restore(ndmp_connection_t *conn,
ndmpd_audit_connect(ndmp_connection_t *conn, int result)
ndmpd_audit_disconnect(ndmp_connection_t *conn)
return ((ndmp_connection_t *)connection);
ndmp_destroy_connection(ndmp_connection_t *connection_handle)
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_close(ndmp_connection_t *connection_handle)
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_connection_t *connection;
((ndmp_connection_t *)connection)->conn_sock = sock;
ndmp_process_requests(ndmp_connection_t *connection_handle)
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_send_request(ndmp_connection_t *connection_handle, ndmp_message message,
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_send_request_lock(ndmp_connection_t *connection_handle,
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_send_response(ndmp_connection_t *connection_handle, ndmp_error err,
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_free_message(ndmp_connection_t *connection_handle)
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
ndmp_get_fd(ndmp_connection_t *connection_handle)
return (((ndmp_connection_t *)connection_handle)->conn_sock);
ndmp_set_client_data(ndmp_connection_t *connection_handle, void *client_data)
((ndmp_connection_t *)connection_handle)->conn_client_data =
ndmp_get_client_data(ndmp_connection_t *connection_handle)
return (((ndmp_connection_t *)connection_handle)->conn_client_data);
ndmp_set_version(ndmp_connection_t *connection_handle, ushort_t version)
((ndmp_connection_t *)connection_handle)->conn_version = version;
ndmp_get_version(ndmp_connection_t *connection_handle)
return (((ndmp_connection_t *)connection_handle)->conn_version);
ndmp_set_authorized(ndmp_connection_t *connection_handle, boolean_t authorized)
((ndmp_connection_t *)connection_handle)->conn_authorized = authorized;
connection_handler(ndmp_connection_t *connection)
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
static int ndmp_recv_msg(ndmp_connection_t *connection);
ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle;
extern ndmp_connection_t *ndmp_create_connection(void);
extern void ndmp_destroy_connection(ndmp_connection_t *);
extern void ndmp_close(ndmp_connection_t *);
extern int ndmp_connect(ndmp_connection_t *,
extern int ndmp_process_requests(ndmp_connection_t *);
extern int ndmp_send_response(ndmp_connection_t *,
extern int ndmp_send_request(ndmp_connection_t *,
extern int ndmp_send_request_lock(ndmp_connection_t *,
extern void ndmp_free_message(ndmp_connection_t *);
extern int ndmp_get_fd(ndmp_connection_t *);
extern void ndmp_set_client_data(ndmp_connection_t *,
extern void *ndmp_get_client_data(ndmp_connection_t *);
extern void ndmp_set_version(ndmp_connection_t *,
extern ushort_t ndmp_get_version(ndmp_connection_t *);
extern void ndmp_set_authorized(ndmp_connection_t *,
ndmpd_config_get_ext_list_v4(ndmp_connection_t *connection, void *body)
ndmpd_config_get_host_info_v2(ndmp_connection_t *connection, void *body)
ndmpd_config_set_ext_list_v4(ndmp_connection_t *connection, void *body)
ndmpd_config_get_butype_attr_v2(ndmp_connection_t *connection, void *body)
ndmpd_config_get_mover_type_v2(ndmp_connection_t *connection, void *body)
ndmpd_config_get_auth_attr_v2(ndmp_connection_t *connection, void *body)
ndmpd_config_get_host_info_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_connection_type_v3(ndmp_connection_t *connection,
ndmpd_config_get_auth_attr_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_butype_info_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_fs_info_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_tape_info_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_scsi_info_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_server_info_v3(ndmp_connection_t *connection, void *body)
ndmpd_config_get_butype_info_v4(ndmp_connection_t *connection, void *body)
ndmp_connection_t *cl_conn;
ndmpd_connect_kill(ndmp_connection_t *connection)
ndmpd_connect_open_v2(ndmp_connection_t *connection, void *body)
ndmpd_connect_client_auth_v2(ndmp_connection_t *connection, void *body)
ndmpd_connect_server_auth_v2(ndmp_connection_t *connection, void *body)
ndmpd_connect_close_v2(ndmp_connection_t *connection, void *body)
ndmpd_connect_client_auth_v3(ndmp_connection_t *connection, void *body)
ndmpd_connect_close_v3(ndmp_connection_t *connection, void *body)
ndmp_connect_list_find(ndmp_connection_t *connection)
static struct conn_list *ndmp_connect_list_find(ndmp_connection_t *connection);
ndmp_connect_list_add(ndmp_connection_t *connection, int *id)
ndmp_connect_list_del(ndmp_connection_t *connection)
static void ndmp_connect_get_v2(ndmp_connection_t *connection,
static void ndmp_connect_get_v3(ndmp_connection_t *connection,
ndmp_connect_get_v2(ndmp_connection_t *connection, ndmp_door_ctx_t *enc_ctx)
ndmp_connect_get_v3(ndmp_connection_t *connection, ndmp_door_ctx_t *enc_ctx)
ndmpd_data_start_recover_filehist_v4(ndmp_connection_t *connection, void *body)
ndmpd_data_start_backup_v2(ndmp_connection_t *connection, void *body)
ndmpd_data_start_recover_v2(ndmp_connection_t *connection, void *body)
ndmpd_data_get_env_v2(ndmp_connection_t *connection, void *body)
ndmpd_data_stop_v2(ndmp_connection_t *connection, void *body)
ndmpd_data_abort_v2(ndmp_connection_t *connection, void *body)
ndmpd_data_get_state_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_start_backup_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_start_recover_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_abort_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_stop_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_listen_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_connect_v3(ndmp_connection_t *connection, void *body)
ndmpd_data_get_env_v4(ndmp_connection_t *connection, void *body)
ndmpd_data_get_state_v4(ndmp_connection_t *connection, void *body)
ndmpd_data_connect_v4(ndmp_connection_t *connection, void *body)
ndmpd_data_get_state_v2(ndmp_connection_t *connection, void *body)
ndmpd_data_listen_v4(ndmp_connection_t *connection, void *body)
ndmpd_mover_connect_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_get_state_v4(ndmp_connection_t *connection, void *body)
ndmpd_mover_listen_v4(ndmp_connection_t *connection, void *body)
ndmpd_mover_connect_v4(ndmp_connection_t *connection, void *body)
ndmpd_mover_get_state_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_listen_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_continue_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_abort_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_stop_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_set_window_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_read_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_close_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_set_record_size_v2(ndmp_connection_t *connection, void *body)
ndmpd_mover_get_state_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_listen_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_continue_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_abort_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_set_window_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_read_v3(ndmp_connection_t *connection, void *body)
ndmpd_mover_set_record_size_v3(ndmp_connection_t *connection, void *body)
ndmpd_scsi_close_v2(ndmp_connection_t *connection, void *body)
ndmpd_scsi_get_state_v2(ndmp_connection_t *connection, void *body)
ndmpd_scsi_set_target_v2(ndmp_connection_t *connection, void *body)
ndmpd_scsi_reset_device_v2(ndmp_connection_t *connection, void *body)
ndmpd_scsi_reset_bus_v2(ndmp_connection_t *connection, void *body)
ndmpd_scsi_execute_cdb_v2(ndmp_connection_t *connection, void *body)
ndmpd_scsi_open_v3(ndmp_connection_t *connection, void *body)
ndmpd_scsi_set_target_v3(ndmp_connection_t *connection, void *body)
scsi_open_send_reply(ndmp_connection_t *connection, int err)
common_open(ndmp_connection_t *connection, char *devname)
common_set_target(ndmp_connection_t *connection, char *device,
static void scsi_open_send_reply(ndmp_connection_t *connection, int err);
static void common_open(ndmp_connection_t *connection, char *devname);
static void common_set_target(ndmp_connection_t *connection, char *device,
ndmpd_scsi_open_v2(ndmp_connection_t *connection, void *body)
ndmpd_tape_close_v4(ndmp_connection_t *connection, void *body)
ndmpd_tape_open_v2(ndmp_connection_t *connection, void *body)
tape_open_send_reply(ndmp_connection_t *connection, int err)
common_tape_open(ndmp_connection_t *connection, char *devname, int ndmpmode)
common_tape_close(ndmp_connection_t *connection)
ndmpd_tape_close_v2(ndmp_connection_t *connection, void *body)
ndmpd_tape_get_state_v2(ndmp_connection_t *connection, void *body)
ndmpd_tape_mtio_v2(ndmp_connection_t *connection, void *body)
ndmpd_tape_read_v2(ndmp_connection_t *connection, void *body)
static void tape_open_send_reply(ndmp_connection_t *connection, int err);
ndmpd_tape_execute_cdb_v2(ndmp_connection_t *connection, void *body)
static void common_tape_open(ndmp_connection_t *connection, char *devname,
static void common_tape_close(ndmp_connection_t *connection);
ndmpd_tape_open_v3(ndmp_connection_t *connection, void *body)
ndmpd_tape_get_state_v3(ndmp_connection_t *connection, void *body)
void ndmpd_tape_write_v3(ndmp_connection_t *connection, void *body) {
ndmpd_tape_read_v3(ndmp_connection_t *connection, void *body)
ndmpd_tape_get_state_v4(ndmp_connection_t *connection, void *body)
ndmp_connection_t *cl_conn;
ndmp_open_list_add(ndmp_connection_t *conn, char *dev, int sid, int lun, int fd)
ndmp_open_list_release(ndmp_connection_t *conn)
ndmp_send_reply(ndmp_connection_t *connection, void *reply, char *msg)