summaryrefslogtreecommitdiff
path: root/include/iscsi_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/iscsi_proto.h')
-rw-r--r--include/iscsi_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iscsi_proto.h b/include/iscsi_proto.h
index d1e0589..1c69feb 100644
--- a/include/iscsi_proto.h
+++ b/include/iscsi_proto.h
@@ -296,6 +296,8 @@ struct iscsi_tm {
#define ISCSI_TM_FUNC_TARGET_COLD_RESET 7
#define ISCSI_TM_FUNC_TASK_REASSIGN 8
+#define ISCSI_TM_FUNC_VALUE(hdr) ((hdr)->flags & ISCSI_FLAG_TM_FUNC_MASK)
+
/* SCSI Task Management Response Header */
struct iscsi_tm_rsp {
uint8_t opcode;