Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_ioctl.h
Show First 20 Lines • Show All 665 Lines • ▼ Show 20 Lines | #if defined(ICL_KERNEL_PROXY) || 1 | ||||
* We actually need those in all cases, but leave the ICL_KERNEL_PROXY, | * We actually need those in all cases, but leave the ICL_KERNEL_PROXY, | ||||
* to remember to remove them along with rest of proxy code, eventually. | * to remember to remove them along with rest of proxy code, eventually. | ||||
*/ | */ | ||||
CTL_ISCSI_LISTEN, | CTL_ISCSI_LISTEN, | ||||
CTL_ISCSI_ACCEPT, | CTL_ISCSI_ACCEPT, | ||||
CTL_ISCSI_SEND, | CTL_ISCSI_SEND, | ||||
CTL_ISCSI_RECEIVE, | CTL_ISCSI_RECEIVE, | ||||
#endif | #endif | ||||
CTL_ISCSI_MAXCONN, | |||||
} ctl_iscsi_type; | } ctl_iscsi_type; | ||||
typedef enum { | typedef enum { | ||||
CTL_ISCSI_DIGEST_NONE, | CTL_ISCSI_DIGEST_NONE, | ||||
CTL_ISCSI_DIGEST_CRC32C | CTL_ISCSI_DIGEST_CRC32C | ||||
} ctl_iscsi_digest; | } ctl_iscsi_digest; | ||||
#define CTL_ISCSI_NAME_LEN 224 /* 223 bytes, by RFC 3720, + '\0' */ | #define CTL_ISCSI_NAME_LEN 224 /* 223 bytes, by RFC 3720, + '\0' */ | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
struct ctl_iscsi_limits_params { | struct ctl_iscsi_limits_params { | ||||
char offload[CTL_ISCSI_OFFLOAD_LEN]; | char offload[CTL_ISCSI_OFFLOAD_LEN]; | ||||
/* passed to kernel */ | /* passed to kernel */ | ||||
size_t data_segment_limit; | size_t data_segment_limit; | ||||
/* passed to userland */ | /* passed to userland */ | ||||
int spare[4]; | int spare[4]; | ||||
}; | }; | ||||
struct ctl_iscsi_maxconn_params { | |||||
char target_name[CTL_ISCSI_NAME_LEN]; | |||||
int portal_group_tag; /* passed to kernel */ | |||||
int nb_conn; /* filled in kernel */ | |||||
int max_conn; /* filled in kernel */ | |||||
int spare[4]; | |||||
}; | |||||
#ifdef ICL_KERNEL_PROXY | #ifdef ICL_KERNEL_PROXY | ||||
struct ctl_iscsi_listen_params { | struct ctl_iscsi_listen_params { | ||||
int iser; | int iser; | ||||
int domain; | int domain; | ||||
int socktype; | int socktype; | ||||
int protocol; | int protocol; | ||||
struct sockaddr *addr; | struct sockaddr *addr; | ||||
socklen_t addrlen; | socklen_t addrlen; | ||||
Show All 32 Lines | |||||
#endif /* ICL_KERNEL_PROXY */ | #endif /* ICL_KERNEL_PROXY */ | ||||
union ctl_iscsi_data { | union ctl_iscsi_data { | ||||
struct ctl_iscsi_handoff_params handoff; | struct ctl_iscsi_handoff_params handoff; | ||||
struct ctl_iscsi_list_params list; | struct ctl_iscsi_list_params list; | ||||
struct ctl_iscsi_logout_params logout; | struct ctl_iscsi_logout_params logout; | ||||
struct ctl_iscsi_terminate_params terminate; | struct ctl_iscsi_terminate_params terminate; | ||||
struct ctl_iscsi_limits_params limits; | struct ctl_iscsi_limits_params limits; | ||||
struct ctl_iscsi_maxconn_params maxconn; | |||||
#ifdef ICL_KERNEL_PROXY | #ifdef ICL_KERNEL_PROXY | ||||
struct ctl_iscsi_listen_params listen; | struct ctl_iscsi_listen_params listen; | ||||
struct ctl_iscsi_accept_params accept; | struct ctl_iscsi_accept_params accept; | ||||
struct ctl_iscsi_send_params send; | struct ctl_iscsi_send_params send; | ||||
struct ctl_iscsi_receive_params receive; | struct ctl_iscsi_receive_params receive; | ||||
#endif | #endif | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |