2 * Author: Dinesh G Dutt (ddutt@cisco.com)
4 * $Id: packet-scsi.h,v 1.3 2002/02/13 01:17:58 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
8 * Copyright 2002 Gerald Combs
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.
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.
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.
25 #ifndef __PACKET_SCSI_H_
26 #define __PACKET_SCSI_H_
28 extern const value_string scsi_status_val[];
30 /* Function Decls; functions invoked by SAM-2 transport protocols such as
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,
37 void dissect_scsi_snsinfo (tvbuff_t *, packet_info *, proto_tree *, guint, guint);
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.