diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-04-26 21:30:15 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-04-26 21:30:15 +0000 |
commit | 7883558ca4bad93c9fb33305e38163f6fd1d82c8 (patch) | |
tree | 19b17d86fb8ed189f37945d5da1f37ba98dcb686 /sys/scsi | |
parent | efa87cb998f8c596af4b5ef0852b71b69fbb8ff0 (diff) |
Add some defines for the logout request and response and fix the
response struct (one of the reserved fields is actually the response).
OK dlg@
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/iscsi.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/scsi/iscsi.h b/sys/scsi/iscsi.h index 70a577963ed..c1fc1baff87 100644 --- a/sys/scsi/iscsi.h +++ b/sys/scsi/iscsi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iscsi.h,v 1.7 2010/07/10 22:24:14 jordan Exp $ */ +/* $OpenBSD: iscsi.h,v 1.8 2011/04/26 21:30:14 claudio Exp $ */ /* * Copyright (c) 2008 David Gwynne <dlg@openbsd.org> @@ -433,10 +433,21 @@ struct iscsi_pdu_logout_request { u_int8_t _reserved4[16]; } __packed; +#define ISCSI_LOGOUT_F 0x80 +#define ISCSI_LOGOUT_CLOSE_SESS 0 +#define ISCSI_LOGOUT_CLOSE_CONN 1 +#define ISCSI_LOGOUT_RCVRY_CONN 2 + +#define ISCSI_LOGOUT_RESP_SUCCESS 0 +#define ISCSI_LOGOUT_RESP_UNKN_CID 1 +#define ISCSI_LOGOUT_RESP_NO_SUPPORT 2 +#define ISCSI_LOGOUT_RESP_ERROR 3 + struct iscsi_pdu_logout_response { u_int8_t opcode; u_int8_t flags; - u_int8_t _reserved1[2]; + u_int8_t response; + u_int8_t _reserved1; u_int8_t ahslen; u_int8_t datalen[3]; |