Go to the documentation of this file. 1 #ifndef ISCSI_TARGET_CORE_H
2 #define ISCSI_TARGET_CORE_H
12 #define ISCSIT_VERSION "v4.1.0-rc2"
13 #define ISCSI_MAX_DATASN_MISSING_COUNT 16
14 #define ISCSI_TX_THREAD_TCP_TIMEOUT 2
15 #define ISCSI_RX_THREAD_TCP_TIMEOUT 2
16 #define SECONDS_FOR_ASYNC_LOGOUT 10
17 #define SECONDS_FOR_ASYNC_TEXT 10
18 #define SECONDS_FOR_LOGOUT_COMP 15
19 #define WHITE_SPACE " \t\v\f\n\r"
22 #define NA_DATAOUT_TIMEOUT 3
23 #define NA_DATAOUT_TIMEOUT_MAX 60
24 #define NA_DATAOUT_TIMEOUT_MIX 2
25 #define NA_DATAOUT_TIMEOUT_RETRIES 5
26 #define NA_DATAOUT_TIMEOUT_RETRIES_MAX 15
27 #define NA_DATAOUT_TIMEOUT_RETRIES_MIN 1
28 #define NA_NOPIN_TIMEOUT 15
29 #define NA_NOPIN_TIMEOUT_MAX 60
30 #define NA_NOPIN_TIMEOUT_MIN 3
31 #define NA_NOPIN_RESPONSE_TIMEOUT 30
32 #define NA_NOPIN_RESPONSE_TIMEOUT_MAX 60
33 #define NA_NOPIN_RESPONSE_TIMEOUT_MIN 3
34 #define NA_RANDOM_DATAIN_PDU_OFFSETS 0
35 #define NA_RANDOM_DATAIN_SEQ_OFFSETS 0
36 #define NA_RANDOM_R2T_OFFSETS 0
37 #define NA_DEFAULT_ERL 0
38 #define NA_DEFAULT_ERL_MAX 2
39 #define NA_DEFAULT_ERL_MIN 0
42 #define TA_AUTHENTICATION 1
43 #define TA_LOGIN_TIMEOUT 15
44 #define TA_LOGIN_TIMEOUT_MAX 30
45 #define TA_LOGIN_TIMEOUT_MIN 5
46 #define TA_NETIF_TIMEOUT 2
47 #define TA_NETIF_TIMEOUT_MAX 15
48 #define TA_NETIF_TIMEOUT_MIN 2
49 #define TA_GENERATE_NODE_ACLS 0
50 #define TA_DEFAULT_CMDSN_DEPTH 16
51 #define TA_DEFAULT_CMDSN_DEPTH_MAX 512
52 #define TA_DEFAULT_CMDSN_DEPTH_MIN 1
53 #define TA_CACHE_DYNAMIC_ACLS 0
55 #define TA_DEMO_MODE_WRITE_PROTECT 1
57 #define TA_PROD_MODE_WRITE_PROTECT 0
58 #define TA_CACHE_CORE_NPS 0
61 #define ISCSI_IOV_DATA_BUFFER 5
445 #define ISCSI_MISC_IOVECS 5
468 #define ISCSI_SENSE_BUFFER_LEN (TRANSPORT_SENSE_BUFFER + 2)
521 #define IPV6_ADDRESS_SPACE 48
693 struct se_dev_entry_s;
701 #define MAX_USER_LEN 256
702 #define MAX_PASS_LEN 256
723 #define NODE_STAT_GRPS(nacl) (&(nacl)->node_stat_grps)
725 #define ISCSI_NODE_ATTRIB(t) (&(t)->node_attrib)
726 #define ISCSI_NODE_AUTH(t) (&(t)->node_auth)
799 #define ISCSI_TPG_C(c) ((struct iscsi_portal_group *)(c)->tpg)
800 #define ISCSI_TPG_LUN(c, l) ((iscsi_tpg_list_t *)(c)->tpg->tpg_lun_list_t[l])
801 #define ISCSI_TPG_S(s) ((struct iscsi_portal_group *)(s)->tpg)
802 #define ISCSI_TPG_ATTRIB(t) (&(t)->tpg_attrib)
803 #define SE_TPG(tpg) (&(tpg)->tpg_se_tpg)
815 #define ISCSI_IQN_LEN 224
835 #define WWN_STAT_GRPS(tiqn) (&(tiqn)->tiqn_stat_grps)