There's no need to allocate and fill in an array of sub-authorities and
[obnox/wireshark/wip.git] / packet-scsi.h
1 /* packet-scsi.h
2  * Author: Dinesh G Dutt (ddutt@cisco.com)
3  *
4  * $Id: packet-scsi.h,v 1.3 2002/02/13 01:17:58 guy Exp $
5  * 
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 2002 Gerald Combs
9  * 
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  * 
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef __PACKET_SCSI_H_
26 #define __PACKET_SCSI_H_
27
28 extern const value_string scsi_status_val[];
29
30 /* Function Decls; functions invoked by SAM-2 transport protocols such as
31  * FCP/iSCSI
32  */
33 void dissect_scsi_cdb (tvbuff_t *, packet_info *, proto_tree *, guint, guint);
34 void dissect_scsi_rsp (tvbuff_t *, packet_info *, proto_tree *);
35 void dissect_scsi_payload (tvbuff_t *, packet_info *, proto_tree *, guint,
36                            gboolean, guint32);
37 void dissect_scsi_snsinfo (tvbuff_t *, packet_info *, proto_tree *, guint, guint);
38
39 /*
40  * Private data to be supplied to those functions via "pinfo->private_data";
41  * the structure contains a 32-bit conversation ID and a 32-bit task
42  * ID, where the former identifies a conversation between initiator and
43  * target and the latter identifies a SCSI task within that conversation.
44  */
45 typedef struct {
46         guint32 conv_id;
47         guint32 task_id;
48 } scsi_task_id_t;
49
50 #endif