2 * Fibre Channel Basic Link Services header
3 * Copyright 2001, Dinesh G Dutt <ddutt@cisco.com>
5 * $Id: packet-fcbls.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_FCBLS_H_
27 #define __PACKET_FCBLS_H_
29 #define FC_BLS_NOP 0x00
30 #define FC_BLS_ABTS 0x01
31 #define FC_BLS_RMC 0x02
32 #define FC_BLS_BAACC 0x04
33 #define FC_BLS_BARJT 0x05
34 #define FC_BLS_PRMT 0x06
36 static const value_string fc_bls_proto_val[] = {
38 {FC_BLS_ABTS , "ABTS"},
40 {FC_BLS_BAACC , "BA_ACC"},
41 {FC_BLS_BARJT , "BA_RJT"},
42 {FC_BLS_PRMT , "PRMT"},
46 #define FC_BLS_BARJT_INVCMDCODE 0x01
47 #define FC_BLS_BARJT_LOGERR 0x03
48 #define FC_BLS_BARJT_LOGBSY 0x05
49 #define FC_BLS_BARJT_PROTERR 0x07
50 #define FC_BLS_BARJT_GENFAIL 0x09
51 #define FC_BLS_BARJT_VENDOR 0xFF
53 static const value_string fc_bls_barjt_val[] = {
54 {FC_BLS_BARJT_INVCMDCODE, "Invalid Cmd Code"},
55 {FC_BLS_BARJT_LOGERR , "Logical Error"},
56 {FC_BLS_BARJT_LOGBSY , "Logical Busy"},
57 {FC_BLS_BARJT_PROTERR , "Protocol Error"},
58 {FC_BLS_BARJT_GENFAIL , "Unable to Perform Cmd"},
59 {FC_BLS_BARJT_VENDOR , "Vendor Unique Error"},
63 #define FC_BLS_BARJT_DET_NODET 0x01
64 #define FC_BLS_BARJT_DET_INVEXCHG 0x03
65 #define FC_BLS_BARJT_DET_SEQABT 0x05
67 static const value_string fc_bls_barjt_det_val[] = {
68 {FC_BLS_BARJT_DET_NODET , "No Details"},
69 {FC_BLS_BARJT_DET_INVEXCHG, "Invalid OXID-RXID Combo"},
70 {FC_BLS_BARJT_DET_SEQABT , "Sequence Aborted"},
74 static const value_string fc_bls_seqid_val[] = {
80 typedef struct _fc_bls_ba_rjt {