2 * Fibre Channel SCSI (FCP) Protocol definitions
3 * Copyright 2001 Dinesh G Dutt (ddutt@cisco.com)
5 * $Id: packet-fcp.h,v 1.1 2002/12/08 02:32:17 gerald Exp $
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@ethereal.com>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef __PACKET_FCP_H_
27 #define __PACKET_FCP_H_
29 /* Information Categories based on lower 4 bits of R_CTL */
30 #define FCP_IU_DATA 0x1
31 #define FCP_IU_CONFIRM 0x3
32 #define FCP_IU_XFER_RDY 0x5
33 #define FCP_IU_CMD 0x6
34 #define FCP_IU_RSP 0x7
36 static const value_string fcp_iu_val[] = {
37 {FCP_IU_DATA , "FCP_DATA"},
38 {FCP_IU_CONFIRM , "Confirm"},
39 {FCP_IU_XFER_RDY , "XFER_RDY"},
40 {FCP_IU_CMD , "FCP_CMND"},
41 {FCP_IU_RSP , "FCP_RSP"},
45 /* Task Attribute Values */
46 static const value_string fcp_task_attr_val[] = {
55 /* RSP Code Definitions (from FCP_RSP_INFO) */
56 static const value_string fcp_rsp_code_val[] = {
57 {0, "Task Management Function Complete"},
58 {1, "FCP_DATA length Different from FCP_BURST_LEN"},
59 {2, "FCP_CMND Fields Invalid"},
60 {3, "FCP_DATA Parameter Mismatch With FCP_DATA_RO"},
61 {4, "Task Management Function Rejected"},
62 {5, "Task Management Function Failed"},
66 #define FCP_DEF_CMND_LEN 32 /* by default cmnd is 32 bytes */
67 #define FCP_DEF_RSP_LEN 24 /* default FCP_RSP len */